]> git.sur5r.net Git - u-boot/commitdiff
Add ID EEPROM support for MPC8572DS
authorHaiying Wang <Haiying.Wang@freescale.com>
Fri, 3 Oct 2008 15:47:30 +0000 (11:47 -0400)
committerAndrew Fleming-AFLEMING <afleming@freescale.com>
Tue, 7 Oct 2008 21:22:26 +0000 (16:22 -0500)
The ID EEPROM on MPC8572DS board locates on I2C bus 1. Its the storage for
system information like mac addresses etc. This patch enables it.

Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
include/configs/MPC8572DS.h

index 87b10116d1d296308588e161ae0eee788afd971d..fbe7b6134a319f34f9ac72602ede935cd8d49ae8 100644 (file)
@@ -303,6 +303,17 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 #define CFG_I2C_OFFSET         0x3000
 #define CFG_I2C2_OFFSET                0x3100
 
+/*
+ * I2C2 EEPROM
+ */
+#define CONFIG_ID_EEPROM
+#ifdef CONFIG_ID_EEPROM
+#define CFG_I2C_EEPROM_NXID
+#endif
+#define CFG_I2C_EEPROM_ADDR    0x57
+#define CFG_I2C_EEPROM_ADDR_LEN 1
+#define CFG_EEPROM_BUS_NUM     1
+
 /*
  * General PCI
  * Memory space is mapped 1-1, but I/O space must start from 0.