Skip to content
Snippets Groups Projects
Commit 752a8311 authored by Roger Quadros's avatar Roger Quadros Committed by Tom Rini
Browse files

ARM: k2g: setup PRU ethernet MAC addresses


PRU ethernet MAC address range is present in the
board EEPROM. Parse it and setup eth?addr
environment variables.

Signed-off-by: default avatarRoger Quadros <rogerq@ti.com>
Reviewed-by: default avatarLokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent 66e04fb5
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,8 @@ config TARGET_K2L_EVM ...@@ -15,6 +15,8 @@ config TARGET_K2L_EVM
config TARGET_K2G_EVM config TARGET_K2G_EVM
bool "TI Keystone 2 Galileo EVM" bool "TI Keystone 2 Galileo EVM"
select BOARD_LATE_INIT
select TI_I2C_BOARD_DETECT
endchoice endchoice
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <asm/arch/psc_defs.h> #include <asm/arch/psc_defs.h>
#include <asm/arch/mmc_host_def.h> #include <asm/arch/mmc_host_def.h>
#include "mux-k2g.h" #include "mux-k2g.h"
#include "../common/board_detect.h"
#define SYS_CLK 24000000 #define SYS_CLK 24000000
...@@ -149,6 +150,24 @@ int board_early_init_f(void) ...@@ -149,6 +150,24 @@ int board_early_init_f(void)
} }
#endif #endif
#ifdef CONFIG_BOARD_LATE_INIT
int board_late_init(void)
{
#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_TI_I2C_BOARD_DETECT)
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 #ifdef CONFIG_SPL_BUILD
void spl_init_keystone_plls(void) void spl_init_keystone_plls(void)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment