armv8/ls1043aqds: Enable ID_EEPROM support for ls1043aqds
authorWenbin Song <wenbin.song@nxp.com>
Wed, 9 Mar 2016 05:38:25 +0000 (13:38 +0800)
committerYork Sun <york.sun@nxp.com>
Mon, 21 Mar 2016 19:42:15 +0000 (12:42 -0700)
Signed-off-by: Wenbin Song <wenbin.song@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
include/configs/ls1043aqds.h

index 68e00c8..7b99d36 100644 (file)
@@ -114,6 +114,16 @@ unsigned long get_board_ddr_clk(void);
 #define CONFIG_DOS_PARTITION
 #define CONFIG_BOARD_LATE_INIT
 
+
+/* EEPROM */
+#define CONFIG_ID_EEPROM
+#define CONFIG_SYS_I2C_EEPROM_NXID
+#define CONFIG_SYS_EEPROM_BUS_NUM              0
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x57
+#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_SATA                                AHCI_BASE_ADDR
 
 #define CONFIG_SYS_SCSI_MAX_SCSI_ID            1