diff options
Diffstat (limited to 'common')
| -rw-r--r-- | common/cmd_bootm.c | 1 | ||||
| -rw-r--r-- | common/soft_i2c.c | 3 | 
2 files changed, 3 insertions, 1 deletions
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c index 2cf625d6f..e138d78b9 100644 --- a/common/cmd_bootm.c +++ b/common/cmd_bootm.c @@ -366,6 +366,7 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag,  	}  #ifdef CONFIG_LOGBUFFER +	kbd=gd->bd;  	/* Prevent initrd from overwriting logbuffer */  	if (initrd_high < (kbd->bi_memsize-LOGBUFF_LEN-LOGBUFF_OVERHEAD))  		initrd_high = kbd->bi_memsize-LOGBUFF_LEN-LOGBUFF_OVERHEAD; diff --git a/common/soft_i2c.c b/common/soft_i2c.c index 77774801e..63574044a 100644 --- a/common/soft_i2c.c +++ b/common/soft_i2c.c @@ -287,8 +287,9 @@ int i2c_probe(uchar addr)  {  	int rc; +	/* perform 1 byte read transaction */  	send_start(); -	rc = write_byte ((addr << 1) | 1); +	rc = write_byte ((addr << 1) | 0);  	send_stop();  	return (rc ? 1 : 0);  |