diff options
author | Dmitry Lifshitz <lifshitz@compulab.co.il> | 2014-04-27 13:18:46 +0300 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-05-23 19:40:39 -0400 |
commit | a9375f3328135d651d7500df3e4c43432e5db133 (patch) | |
tree | fd9cf808d41d9ce69ce6fd086f6239be40e31a58 /include | |
parent | 076446f106d0732f79456485be275ad2109306f4 (diff) |
cm-t54: add EEPROM support and MAC address handling
cm-t54 Eth MAC address is stored in onboard EEPROM.
Add EEPROM support and setup stored Eth MAC address.
If EEPROM does not contain a valid MAC, then generate it from the
processor ID code (reference code is taken from OMAP5 uEvm board file).
Modify Device Tree blob MAC address field with retrieved data.
Signed-off-by: Dmitry Lifshitz <lifshitz@compulab.co.il>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/cm_t54.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/configs/cm_t54.h b/include/configs/cm_t54.h index 4dcac4004e..5e805c4019 100644 --- a/include/configs/cm_t54.h +++ b/include/configs/cm_t54.h @@ -19,6 +19,15 @@ #undef CONFIG_MISC_INIT_R #undef CONFIG_SPL_OS_BOOT +/* Device Tree defines */ +#define CONFIG_OF_LIBFDT +#define CONFIG_OF_BOARD_SETUP + +/* EEPROM related defines */ +#define CONFIG_SYS_I2C_OMAP34XX +#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50 +#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 + /* Enable SD/MMC CD and WP GPIOs */ #define OMAP_HSMMC_USE_GPIO |