diff options
author | Christian Gmeiner | 2022-02-15 07:47:55 +0100 |
---|---|---|
committer | Tom Rini | 2022-03-04 15:20:06 -0500 |
commit | f7fbe547d99729cfa36238ba1629c26589834867 (patch) | |
tree | 2294ead6e49555e2e3d1bf74ad975f0cf1a4ffe4 /arch | |
parent | 4ff9a8c33c5f2514ee6e66788259399b6626f6b5 (diff) |
arm: mach-k3: am6_init: Use CONFIG_TI_I2C_BOARD_DETECT
We only want to call do_board_detect() if CONFIG_TI_I2C_BOARD_DETECT
is set. Same as done for am64.
This makes it possible to add a custom am65 based board design to
U-Boot that does not use this board detection mechanism.
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-k3/am6_init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-k3/am6_init.c b/arch/arm/mach-k3/am6_init.c index ffb7aaded2e..8a6b1de7641 100644 --- a/arch/arm/mach-k3/am6_init.c +++ b/arch/arm/mach-k3/am6_init.c @@ -251,7 +251,8 @@ void board_init_f(ulong dummy) k3_sysfw_print_ver(); /* Perform EEPROM-based board detection */ - do_board_detect(); + if (IS_ENABLED(CONFIG_TI_I2C_BOARD_DETECT)) + do_board_detect(); #if defined(CONFIG_CPU_V7R) && defined(CONFIG_K3_AVS0) ret = uclass_get_device_by_driver(UCLASS_MISC, DM_DRIVER_GET(k3_avs), |