]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
cmd_eeprom: make it possible to define the used i2c bus
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Wed, 11 Feb 2015 14:19:31 +0000 (15:19 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 11:53:01 +0000 (13:53 +0200)
commit4c8c9ff3244151e5f066595878b279d54b35d209
treeb112cb9b410893d123d4206f6a97ed880c179c36
parentf8450550697418dd55529dba7296aec3f35c7bfd
cmd_eeprom: make it possible to define the used i2c bus

A SoC like the i.MX6 supports more then one i2c bus. In oder to be
able to use the eeprom command add a new define to specify the
i2c bus to use. If CONFIG_SYS_I2C_EEPROM_BUS is not defined there
is no functional change, else a call to i2c_set_bus_num(..) is
done before calling i2c_read(..) and i2c_write(..).

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Acked-by: Stefano Babic <sbabic@denx.de>
README
common/cmd_eeprom.c