diff options
author | MD Danish Anwar <danishanwar@ti.com> | 2024-04-16 14:50:17 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-04-29 10:54:38 -0600 |
commit | 3752a46b1dbc31641083870c89f50bc8186bd1d0 (patch) | |
tree | c655185a60fe4aea090418f0dacb0d6879021713 | |
parent | 6769ca4179f3c7e0b72e475aba02c4983d969f19 (diff) | |
download | u-boot-3752a46b1dbc31641083870c89f50bc8186bd1d0.zip u-boot-3752a46b1dbc31641083870c89f50bc8186bd1d0.tar.gz u-boot-3752a46b1dbc31641083870c89f50bc8186bd1d0.tar.bz2 |
board: ti: am65x: Add check for k3-am654-icssg2 in board_fit_config_match()
When CONFIG_TI_ICSSG_PRUETH is enabled, add config name check for the
icssg2 overlay in board_fit_config_match() API.
Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
Acked-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
-rw-r--r-- | board/ti/am65x/evm.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/board/ti/am65x/evm.c b/board/ti/am65x/evm.c index 3109c9a..07073a5 100644 --- a/board/ti/am65x/evm.c +++ b/board/ti/am65x/evm.c @@ -91,10 +91,13 @@ int dram_init_banksize(void) #ifdef CONFIG_SPL_LOAD_FIT int board_fit_config_name_match(const char *name) { -#ifdef CONFIG_TARGET_AM654_A53_EVM - if (!strcmp(name, "k3-am654-base-board")) + if (IS_ENABLED(CONFIG_TI_ICSSG_PRUETH) && + strcmp(name, "k3-am654-icssg2") == 0) + return 0; + + if (IS_ENABLED(CONFIG_TARGET_AM654_A53_EVM) && + strcmp(name, "k3-am654-base-board") == 0) return 0; -#endif return -1; } |