[U-Boot] [PATCH] compulab: eeprom: add default eeprom address
Igor Grinberg
grinberg at compulab.co.il
Thu May 15 10:25:09 CEST 2014
Add default eeprom address setting.
Signed-off-by: Igor Grinberg <grinberg at compulab.co.il>
---
Tom, please apply this one first and then the
"compulab: eeprom: enable any i2c driver".
Thanks!
board/compulab/common/eeprom.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/board/compulab/common/eeprom.c b/board/compulab/common/eeprom.c
index 5aa3dbd..20fe3e1 100644
--- a/board/compulab/common/eeprom.c
+++ b/board/compulab/common/eeprom.c
@@ -10,6 +10,11 @@
#include <common.h>
#include <i2c.h>
+#ifndef CONFIG_SYS_I2C_EEPROM_ADDR
+# define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
+# define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#endif
+
#define EEPROM_LAYOUT_VER_OFFSET 44
#define BOARD_SERIAL_OFFSET 20
#define BOARD_SERIAL_OFFSET_LEGACY 8
--
1.8.5.5
More information about the U-Boot
mailing list