]> git.sur5r.net Git - u-boot/commit
cmd_eeprom: fix i2c_{read|write} usage if env is in I2C EEPROM
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Thu, 7 Nov 2013 13:51:43 +0000 (17:51 +0400)
committerHeiko Schocher <hs@denx.de>
Wed, 13 Nov 2013 05:21:21 +0000 (06:21 +0100)
commita2e0a45d2e1e258cbe9bd3dbbe7bc7cacbf7a84e
tree1e0d446d7eca064f48801329351027054135b417
parent85bb251b393470c6d2a91b8f0f92b9f3fda856ca
cmd_eeprom: fix i2c_{read|write} usage if env is in I2C EEPROM

Data "offset" is not used directly in case of I2C EEPROM. Istead it is
split into "block number" and "offset within mentioned block". Which are
"addr[0]" and "addr[1]" respectively.

Signed-off-by: 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>
common/cmd_eeprom.c