From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Guinot Date: Mon, 31 Oct 2011 14:58:35 +0100 Subject: [U-Boot] [PATCH 2/3] netspace_v2: enable I2C EEPROM support In-Reply-To: <1320069516-2105-1-git-send-email-simon@sequanux.org> References: <1320069516-2105-1-git-send-email-simon@sequanux.org> Message-ID: <1320069516-2105-3-git-send-email-simon@sequanux.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Simon Guinot 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 --- include/configs/netspace_v2.h | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/include/configs/netspace_v2.h b/include/configs/netspace_v2.h index 5790602..bb27ed7 100644 --- a/include/configs/netspace_v2.h +++ b/include/configs/netspace_v2.h @@ -108,6 +108,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 */ #define CONFIG_CMD_EXT2 -- 1.7.5.1