summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorIgor Grinberg <grinberg@compulab.co.il>2014-05-15 11:25:09 +0300
committerTom Rini <trini@ti.com>2014-05-23 19:40:05 -0400
commitd3f041c0c4b051ed7a2f5791225b0195719e76ff (patch)
tree825df935edd17ec44e34103417afe78eec7207a8 /board
parent02847fcc9278aba56157e254af1c0798319ffba9 (diff)
downloadu-boot-imx-d3f041c0c4b051ed7a2f5791225b0195719e76ff.zip
u-boot-imx-d3f041c0c4b051ed7a2f5791225b0195719e76ff.tar.gz
u-boot-imx-d3f041c0c4b051ed7a2f5791225b0195719e76ff.tar.bz2
compulab: eeprom: add default eeprom address
Add default eeprom address setting. Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Diffstat (limited to 'board')
-rw-r--r--board/compulab/common/eeprom.c5
1 files changed, 5 insertions, 0 deletions
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