From: Nikita Kiryanov Date: Sat, 16 Apr 2016 14:55:06 +0000 (+0300) Subject: arm: cm-t335: add support for eeprom layout comands X-Git-Tag: v2016.07-rc1~196 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0e656b825e76a9ac583c60c5110f9723d9a9f5d1;p=oweals%2Fu-boot.git arm: cm-t335: add support for eeprom layout comands Add support for EEPROM and EEPROM layout commands for CM-T335. Cc: Igor Grinberg Cc: Tom Rini Signed-off-by: Nikita Kiryanov --- diff --git a/include/configs/cm_t335.h b/include/configs/cm_t335.h index c4f1d4f438..6dbc9e980c 100644 --- a/include/configs/cm_t335.h +++ b/include/configs/cm_t335.h @@ -165,6 +165,17 @@ #define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2) #define STATUS_LED_BOOT 0 +/* EEPROM */ +#define CONFIG_CMD_EEPROM +#define CONFIG_ENV_EEPROM_IS_ON_I2C +#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 +#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4 +#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 5 +#define CONFIG_SYS_EEPROM_SIZE 256 + +#define CONFIG_CMD_EEPROM_LAYOUT +#define CONFIG_EEPROM_LAYOUT_HELP_STRING "v2, v3" + #ifndef CONFIG_SPL_BUILD /* * Enable PCA9555 at I2C0-0x26.