diff options
author | Dasnavis Sabiya <sabiya.d@ti.com> | 2023-01-24 20:22:17 +0530 |
---|---|---|
committer | Udit Kumar <u-kumar1@ti.com> | 2023-02-14 10:49:46 +0530 |
commit | d7ac658737c92f2dc18e921ea2a7bb8de38ebc22 (patch) | |
tree | ad8a4bbfed0312fc0356e42e5e3c0f04ca076cfd | |
parent | b22aeb83d01b10ec4de6b97a874357638243e668 (diff) |
arm: j784s4: Add support for selecting DT based on board name
Add support for selecting DTB from FIT based on the board name
read from EEPROM. This facilitates the use of single defconfig
for EVM and SK.
Signed-off-by: Dasnavis Sabiya <sabiya.d@ti.com>
Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
-rw-r--r-- | arch/arm/mach-k3/j784s4_init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-k3/j784s4_init.c b/arch/arm/mach-k3/j784s4_init.c index b5949f4b8c..e112b7a8e4 100644 --- a/arch/arm/mach-k3/j784s4_init.c +++ b/arch/arm/mach-k3/j784s4_init.c @@ -185,6 +185,11 @@ void board_init_f(ulong dummy) k3_sysfw_loader(is_rom_loaded_sysfw(&bootdata), k3_mmc_stop_clock, k3_mmc_restart_clock); +#ifdef CONFIG_SPL_OF_LIST + if (IS_ENABLED(CONFIG_TI_I2C_BOARD_DETECT)) + do_board_detect(); +#endif + if (IS_ENABLED(CONFIG_SPL_CLK_K3)) { /* * Force probe of clk_k3 driver here to ensure basic default clock |