diff options
author | Lokesh Vutla <lokeshvutla@ti.com> | 2016-10-14 10:35:25 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-11-21 13:59:25 -0500 |
commit | 140d76a9ee22472bd3f8fc8066421219f45aa7c3 (patch) | |
tree | 43e9a7f6fd6f81b033af31b9144740547359e307 /arch | |
parent | b64a7cb92dcf6e0047fb524c08c90d5894ba4e39 (diff) | |
download | u-boot-imx-140d76a9ee22472bd3f8fc8066421219f45aa7c3.zip u-boot-imx-140d76a9ee22472bd3f8fc8066421219f45aa7c3.tar.gz u-boot-imx-140d76a9ee22472bd3f8fc8066421219f45aa7c3.tar.bz2 |
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')
-rw-r--r-- | arch/arm/cpu/armv7/am33xx/board.c | 3 | ||||
-rw-r--r-- | arch/arm/include/asm/arch-am33xx/sys_proto.h | 1 |
2 files changed, 4 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(); diff --git a/arch/arm/include/asm/arch-am33xx/sys_proto.h b/arch/arm/include/asm/arch-am33xx/sys_proto.h index 4e942ba..0c5792b 100644 --- a/arch/arm/include/asm/arch-am33xx/sys_proto.h +++ b/arch/arm/include/asm/arch-am33xx/sys_proto.h @@ -45,3 +45,4 @@ int am335x_get_tps65910_mpu_vdd(int sil_rev, int frequency); void enable_usb_clocks(int index); void disable_usb_clocks(int index); +void do_board_detect(void); |