]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: ti: am65x: Add check for k3-am654-icssg2 in board_fit_config_match()
authorMD Danish Anwar <danishanwar@ti.com>
Tue, 16 Apr 2024 09:20:17 +0000 (14:50 +0530)
committerTom Rini <trini@konsulko.com>
Mon, 29 Apr 2024 16:54:38 +0000 (10:54 -0600)
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>
board/ti/am65x/evm.c

index 3109c9a2acaccd9349e4a2088640083c26c6b274..07073a5940b153facc1879e4a76055bd47960043 100644 (file)
@@ -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;
 }