Nikita Kiryanov
e7a2447ba2
compulab: eeprom: allow reading mac address from multiple eeproms
...
Implement the option to select the eeprom i2c bus when reading mac
address.
Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il >
Cc: Stefano Babic <sbabic@denx.de >
Cc: Igor Grinberg <grinberg@compulab.co.il >
Cc: Ilya Ledvich <ilya@compulab.co.il >
Cc: Dmitry Lifshitz <lifshitz@compulab.co.il >
Acked-by: Igor Grinberg <grinberg@compulab.co.il >
2015-01-29 17:42:28 +01:00
Igor Grinberg
a937fd1682
compulab: refactor board revision handling
...
Move board revision handling code to a common location
for further reuse.
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il >
Reviewed-by: Tom Rini <trini@ti.com >
2014-11-06 11:04:40 -05:00
Nikita Kiryanov
7d2f669b94
compulab: eeprom: add default eeprom bus
...
Add default eeprom bus setting.
This addresses the trimslice compile error that was introduced
with the addition of this setting.
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net >
Cc: Igor Grinberg <grinberg@compulab.co.il >
Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il >
Acked-by: Igor Grinberg <grinberg@compulab.co.il >
2014-10-09 10:44:59 +02:00
Nikita Kiryanov
52658fda7a
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 >
2014-09-09 15:32:32 +02:00
Igor Grinberg
d3f041c0c4
compulab: eeprom: add default eeprom address
...
Add default eeprom address setting.
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il >
2014-05-23 19:40:05 -04:00
Igor Grinberg
689be5f83c
cm-t35: move the eeprom code to common place
...
Compulab boards use the same eeprom code, so move the eeprom related
code to live under board/compulab/common directory.
Also make several adjustments to eeprom functions namespace, so it will
be generic for compulab boards.
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il >
Tested-by: Nikita Kiryanov <nikita@compulab.co.il >
2013-11-01 15:55:59 -04:00