diff options
author | Tom Rini <trini@konsulko.com> | 2019-10-25 13:50:33 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-10-25 13:50:33 -0400 |
commit | c9e50bb12af19a8365ae4d3099abb8db1abee785 (patch) | |
tree | 7728da43b2f33fc558d797ffe37172bfc522acc1 /board | |
parent | e382713d224d6fc14cf8fe8f6bb852f24ab652a7 (diff) | |
parent | 4c49753ce2e527c6b561ca6fbbd782b4914f83e2 (diff) | |
download | u-boot-c9e50bb12af19a8365ae4d3099abb8db1abee785.zip u-boot-c9e50bb12af19a8365ae4d3099abb8db1abee785.tar.gz u-boot-c9e50bb12af19a8365ae4d3099abb8db1abee785.tar.bz2 |
Merge tag 'u-boot-atmel-2020.01-b' of https://gitlab.denx.de/u-boot/custodians/u-boot-atmel
Second set of u-boot-atmel features and fixes for 2020.01 cycle
This feature set includes Eugen's work on a new tiny flexcom driver and
eeprom mac retrieval for the sam9x60-ek board.
Diffstat (limited to 'board')
-rw-r--r-- | board/atmel/sam9x60ek/sam9x60ek.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/board/atmel/sam9x60ek/sam9x60ek.c b/board/atmel/sam9x60ek/sam9x60ek.c index 182b3ae..7be1dd5 100644 --- a/board/atmel/sam9x60ek/sam9x60ek.c +++ b/board/atmel/sam9x60ek/sam9x60ek.c @@ -106,6 +106,18 @@ int board_early_init_f(void) } #endif +#define MAC24AA_MAC_OFFSET 0xfa + +#ifdef CONFIG_MISC_INIT_R +int misc_init_r(void) +{ +#ifdef CONFIG_I2C_EEPROM + at91_set_ethaddr(MAC24AA_MAC_OFFSET); +#endif + return 0; +} +#endif + int board_init(void) { /* address of boot parameters */ |