From: Roger Quadros Date: Wed, 8 Feb 2017 10:35:36 +0200 Subject: [U-Boot] [u-boot PATCH v3 7/8] ARM: k2g: setup PRU ethernet MAC addresses In-Reply-To: <3af91a45-526e-a4bd-f25e-144904ef9336@ti.com> References: <1486373775-29580-1-git-send-email-rogerq@ti.com> <1486373775-29580-8-git-send-email-rogerq@ti.com> <3af91a45-526e-a4bd-f25e-144904ef9336@ti.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 07/02/17 05:22, Lokesh Vutla wrote: > > > On 2/6/2017 3:06 PM, Roger Quadros wrote: >> PRU ethernet MAC address range is present in the >> board EEPROM. Parse it and setup eth?addr >> environment variables. >> >> Signed-off-by: Roger Quadros >> Reviewed-by: Lokesh Vutla >> --- >> board/ti/ks2_evm/board_k2g.c | 19 +++++++++++++++++++ >> 1 file changed, 19 insertions(+) >> >> diff --git a/board/ti/ks2_evm/board_k2g.c b/board/ti/ks2_evm/board_k2g.c >> index 40edbaa..a738dd2 100644 >> --- a/board/ti/ks2_evm/board_k2g.c >> +++ b/board/ti/ks2_evm/board_k2g.c >> @@ -12,6 +12,7 @@ >> #include >> #include >> #include "mux-k2g.h" >> +#include "../common/board_detect.h" >> >> #define SYS_CLK 24000000 >> >> @@ -149,6 +150,24 @@ int board_early_init_f(void) >> } >> #endif >> >> +#ifdef CONFIG_BOARD_LATE_INIT >> +int board_late_init(void) >> +{ >> +#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_TI_I2C_BOARD_DETECT) > > You might want to select CONFIG_TI_I2C_BOARD_DETECT and > CONFIG_BOARD_LATE_INIT for this to take effect. I do not see these > configs enabled or am I missing something? I was expecting k2g-ice board to have a new defconfig. But it seems that we will continue to use k2g_evm_defconfig for that so I'll enable these options there. cheers, -roger > > Thanks and regards, > Lokesh > >> + int rc; >> + >> + rc = ti_i2c_eeprom_am_get(CONFIG_EEPROM_BUS_ADDRESS, >> + CONFIG_EEPROM_CHIP_ADDRESS); >> + if (rc) >> + printf("ti_i2c_eeprom_init failed %d\n", rc); >> + >> + board_ti_set_ethaddr(1); >> +#endif >> + >> + return 0; >> +} >> +#endif >> + >> #ifdef CONFIG_SPL_BUILD >> void spl_init_keystone_plls(void) >> { >> -- cheers, -roger