compulab: eeprom: add support for defining eeprom i2c bus
authorNikita Kiryanov <nikita@compulab.co.il>
Wed, 20 Aug 2014 12:08:52 +0000 (15:08 +0300)
committerStefano Babic <sbabic@denx.de>
Tue, 9 Sep 2014 13:32:32 +0000 (15:32 +0200)
commit52658fda7abc4319ff7f8fe934d2e7c0a32202d7
tree16f6a0edb0a856c39256e8ec539759cb7ccb3f4b
parent224beb833e544b802f08765271cec07667d39669
compulab: eeprom: add support for defining eeprom i2c bus

Create CONFIG_SYS_I2C_EEPROM_BUS #define to tell the EEPROM
module what I2C bus the EEPROM is located at. Make cl_eeprom_read()
switch to that bus when reading EEPROM.

Cc: Igor Grinberg <grinberg@compulab.co.il>
Cc: Dmitry Lifshitz <lifshitz@compulab.co.il>
Cc: Tom Rini <trini@ti.com>
Cc: Marek Vasut <marex@denx.de>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Acked-by: Dmitry Lifshitz <lifshitz@compulab.co.il>
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
board/compulab/common/eeprom.c
include/configs/cm_t335.h
include/configs/cm_t35.h
include/configs/cm_t54.h