From: Simon Guinot <[simon@sequanux.org]> Date: Tue, 1 Nov 2011 11:14:12 +0000 (+0530) Subject: netspace_v2: enable I2C EEPROM support X-Git-Tag: v2011.12-rc1~228^2~63 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c841c12c7a0ebf99987b424cf03d114c3c81b6b3;p=oweals%2Fu-boot.git netspace_v2: enable I2C EEPROM support 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 --- diff --git a/include/configs/netspace_v2.h b/include/configs/netspace_v2.h index 5790602d93..bb27ed7648 100644 --- a/include/configs/netspace_v2.h +++ b/include/configs/netspace_v2.h @@ -107,6 +107,17 @@ */ #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 */