diff options
author | Lokesh Vutla <lokeshvutla@ti.com> | 2016-10-14 05:05:25 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-11-21 18:59:25 (GMT) |
commit | 140d76a9ee22472bd3f8fc8066421219f45aa7c3 (patch) | |
tree | 43e9a7f6fd6f81b033af31b9144740547359e307 /arch/arm/cpu/armv7/am33xx | |
parent | b64a7cb92dcf6e0047fb524c08c90d5894ba4e39 (diff) | |
download | u-boot-140d76a9ee22472bd3f8fc8066421219f45aa7c3.tar.xz |
board: ti: amx3xx: Remove multiple EEPROM reads
Detect the board very early and avoid reading eeprom multiple times.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/arm/cpu/armv7/am33xx')
-rw-r--r-- | arch/arm/cpu/armv7/am33xx/board.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/am33xx/board.c b/arch/arm/cpu/armv7/am33xx/board.c index 8340b54..5ebeac0 100644 --- a/arch/arm/cpu/armv7/am33xx/board.c +++ b/arch/arm/cpu/armv7/am33xx/board.c @@ -288,6 +288,9 @@ void early_system_init(void) set_uart_mux_conf(); setup_early_clocks(); uart_soft_reset(); +#ifdef CONFIG_TI_I2C_BOARD_DETECT + do_board_detect(); +#endif #if defined(CONFIG_SPL_AM33XX_ENABLE_RTC32K_OSC) /* Enable RTC32K clock */ rtc32k_enable(); |