]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
netspace_v2: enable I2C EEPROM support
authorSimon Guinot <[simon@sequanux.org]>
Tue, 1 Nov 2011 11:14:12 +0000 (16:44 +0530)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 3 Nov 2011 21:56:22 +0000 (22:56 +0100)
An I2C EEPROM HT24LC04 (512B) is available on the netspace_v2 board
(and parents). This EEPROM hold data such as Ethernet MAC addresses
and power flags.

Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
include/configs/netspace_v2.h

index 5790602d9376b6ab47a86a46d3966d781fa8c719..bb27ed76486909512543b4bf4dbb1fc78d0fcd8d 100644 (file)
  */
 #define CONFIG_KIRKWOOD_GPIO
 
+/*
+ * Enable I2C support
+ */
+#ifdef CONFIG_CMD_I2C
+/* I2C EEPROM HT24LC04 (512B - 32 pages of 16 Bytes) */
+#define CONFIG_CMD_EEPROM
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x50
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4 /* 16-byte page size */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         1 /* 8-bit device address */
+#endif /* CONFIG_CMD_I2C */
+
 /*
  * File systems support
  */