Skip to contentSkip to conversation

ot1200: add eeprom command to non-SPL build

PATCH New Christian Gmeiner 2 participants 3 messages Feb 11, 2015 – Feb 17, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 ot1200: add eeprom command to non-SPL build

---
 include/configs/ot1200.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
include/configs/ot1200.h +10 -0
index c061e93..3c60b4f 100644
@@ -131,6 +131,16 @@
 #define CONFIG_PHYLIB
 #define CONFIG_PHY_SMSC
 
+#ifndef CONFIG_SPL
+#define CONFIG_CMD_EEPROM
+#define CONFIG_ENV_EEPROM_IS_ON_I2C
+#define CONFIG_SYS_I2C_EEPROM_BUS             1
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN        1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS     3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 5
+#define CONFIG_SYS_I2C_MULTI_EEPROMS
+#endif
+
 /* Miscellaneous commands */
 #define CONFIG_CMD_BMODE
 #define CONFIG_CMD_SETEXPR
Signature · 1 line
2.1.0
#1 lore raw

PATCH 2/2 ot1200: add eeprom command to non-SPL build

Quoted 17 lines · Christian Gmeiner
---
 include/configs/ot1200.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
include/configs/ot1200.h +3 -0
index c061e93..3c60b4f 100644
@@ -131,6 +131,16 @@
 #define CONFIG_PHYLIB
 #define CONFIG_PHY_SMSC
 
+#ifndef CONFIG_SPL
+#define CONFIG_CMD_EEPROM
+#define CONFIG_ENV_EEPROM_IS_ON_I2C

include/configs/ot1200.h line 146

Quoted 10 lines
include/configs/ot1200.h +7 -0
+#define CONFIG_SYS_I2C_EEPROM_BUS             1
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN        1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS     3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 5
+#define CONFIG_SYS_I2C_MULTI_EEPROMS
+#endif
+
 /* Miscellaneous commands */
 #define CONFIG_CMD_BMODE
 #define CONFIG_CMD_SETEXPR

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
#2 lore raw

PATCH 2/2 ot1200: add eeprom command to non-SPL build

In reply to Christian Gmeiner
Quoted 2 lines · Christian Gmeiner

---

Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================