mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-01 00:50:43 +09:00
omap: detect the board after DM is available
In order to use DM_I2C, we need to move the board detection after the early SPL initialization. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
parent
69dab2be8e
commit
2b30b38b26
@ -472,12 +472,15 @@ void early_system_init(void)
|
|||||||
#ifdef CONFIG_DEBUG_UART_OMAP
|
#ifdef CONFIG_DEBUG_UART_OMAP
|
||||||
debug_uart_init();
|
debug_uart_init();
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_TI_I2C_BOARD_DETECT
|
|
||||||
do_board_detect();
|
|
||||||
#endif
|
|
||||||
#ifdef CONFIG_SPL_BUILD
|
#ifdef CONFIG_SPL_BUILD
|
||||||
spl_early_init();
|
spl_early_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_TI_I2C_BOARD_DETECT
|
||||||
|
do_board_detect();
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPL_AM33XX_ENABLE_RTC32K_OSC)
|
#if defined(CONFIG_SPL_AM33XX_ENABLE_RTC32K_OSC)
|
||||||
/* Enable RTC32K clock */
|
/* Enable RTC32K clock */
|
||||||
rtc32k_enable();
|
rtc32k_enable();
|
||||||
|
@ -193,11 +193,10 @@ void early_system_init(void)
|
|||||||
* to prevent overwrites.
|
* to prevent overwrites.
|
||||||
*/
|
*/
|
||||||
save_omap_boot_params();
|
save_omap_boot_params();
|
||||||
#endif
|
|
||||||
do_board_detect();
|
|
||||||
#ifdef CONFIG_SPL_BUILD
|
|
||||||
spl_early_init();
|
spl_early_init();
|
||||||
#endif
|
#endif
|
||||||
|
do_board_detect();
|
||||||
|
|
||||||
vcores_init();
|
vcores_init();
|
||||||
#ifdef CONFIG_DEBUG_UART_OMAP
|
#ifdef CONFIG_DEBUG_UART_OMAP
|
||||||
debug_uart_init();
|
debug_uart_init();
|
||||||
|
Loading…
Reference in New Issue
Block a user