Kuo-Jung Su
6ca6d080d6
cmd_eeprom: bug fix for i2c read/write
...
The local pointer of address (i.e., addr) only gets
referenced under SPI mode, and it won't be appropriate
to pass only 1-byte addr[1] to i2c_read/i2c_write while
CONFIG_SYS_I2C_EEPROM_ADDR_LEN > 1.
1. In U-boot's I2C model, the address would be re-assembled
to a byte string in MSB order inside I2C controller drivers.
2. The 'CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW' option which could
be found at soft_i2c.c is always turned on in cmd_eeprom.c,
the addr[0] always contains the device address with overflowed
MSB address bits.
Signed-off-by: Kuo-Jung Su <dantesu@faraday-tech.com >
Cc: Alexey Brodkin <abrodkin@synopsys.com >
Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com >
cc: Peter Tyser <ptyser@xes-inc.com >
Cc: Heiko Schocher <hs@denx.de >
Cc: Wolfgang Denk <wd@denx.de >
Cc: Stefan Roese <sr@denx.de >
Cc: Mischa Jonker <mjonker@synopsys.com >
2013-12-05 12:25:01 +01:00
..
2013-10-31 13:26:44 -04:00
2013-04-01 16:33:52 -04:00
2013-10-17 07:20:24 +02:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-08-20 11:35:24 -04:00
2013-04-01 16:33:52 -04:00
2013-10-14 16:06:54 -04:00
2013-07-24 09:44:38 -04:00
2013-11-08 09:41:37 -05:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:50:24 -04:00
2013-07-24 09:44:38 -04:00
2013-10-20 23:42:40 +02:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:53 -04:00
2013-07-24 09:44:38 -04:00
2013-12-05 12:25:01 +01:00
2013-07-12 10:32:39 -04:00
2013-07-24 09:44:38 -04:00
2013-10-07 15:54:18 -04:00
2013-10-07 15:54:18 -04:00
2013-10-07 15:54:18 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-11-06 09:15:12 +01:00
2013-07-26 15:32:59 -04:00
2013-10-07 15:54:18 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-11-08 15:25:12 -05:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-08-27 05:49:52 +02:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-08-19 15:45:35 -04:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:53 -04:00
2013-10-14 16:06:53 -04:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:53 -04:00
2013-07-24 09:44:38 -04:00
2013-08-16 13:45:15 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-11-22 16:50:52 -06:00
2013-07-24 09:44:38 -04:00
2013-10-16 09:24:38 -04:00
2013-11-22 16:50:04 -06:00
2013-07-24 09:44:38 -04:00
2013-09-20 10:29:48 -04:00
2013-07-24 09:44:38 -04:00
2013-10-09 12:52:16 -05:00
2013-08-22 17:25:03 -05:00
2013-07-24 09:44:38 -04:00
2013-11-08 15:25:14 -05:00
2013-05-31 17:12:03 -05:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-11-04 11:24:22 -05:00
2013-07-24 09:44:38 -04:00
2013-11-08 15:25:13 -05:00
2013-10-14 16:49:20 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:53 -04:00
2013-10-16 00:14:01 +05:30
2013-07-24 09:44:38 -04:00
2013-05-13 16:26:12 +08:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-10-20 23:42:41 +02:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:53 -04:00
2013-10-09 12:52:22 -05:00
2013-11-08 15:25:13 -05:00
2013-10-14 16:06:53 -04:00
2013-07-24 09:44:38 -04:00
2013-11-08 20:46:19 +01:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-09-03 13:29:24 -06:00
2013-11-08 15:25:13 -05:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-04-01 16:33:52 -04:00
2013-04-01 16:33:52 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:53 -04:00
2013-10-14 16:06:52 -04:00
2013-10-14 16:06:53 -04:00
2013-10-14 16:06:53 -04:00
2013-10-14 16:06:53 -04:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:53 -04:00
2013-10-14 16:06:53 -04:00
2013-10-14 16:06:53 -04:00
2013-10-14 16:06:53 -04:00
2013-10-14 16:06:53 -04:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:53 -04:00
2013-08-06 23:58:43 +05:30
2013-10-14 16:06:53 -04:00
2013-10-15 20:03:59 -04:00
2013-07-24 09:44:38 -04:00
2013-11-25 10:41:51 -05:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-09-20 10:30:54 -04:00
2013-09-20 10:30:54 -04:00
2013-07-24 09:44:38 -04:00
2013-09-20 10:30:54 -04:00
2013-10-14 16:06:53 -04:00
2013-11-12 09:35:17 +01:00
2013-11-08 15:25:14 -05:00
2013-11-25 10:41:54 -05:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-08 20:21:24 +02:00
2013-08-13 08:38:29 +02:00
2013-07-24 09:44:38 -04:00
2013-08-26 21:56:34 +02:00
2013-08-26 21:56:35 +02:00
2013-07-24 09:44:38 -04:00
2013-10-20 23:45:26 +02:00
2013-07-24 09:45:01 -04:00