]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: ti: j721e: Disable probing of daughtercards
authorSinthu Raja <sinthu.raja@ti.com>
Wed, 9 Feb 2022 09:36:51 +0000 (15:06 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 16 Feb 2022 19:19:30 +0000 (14:19 -0500)
j721e-sk doesn't have any daughter cards, so disable daughter
card probing inside board_late_init() and spl_board_init() for
j721e-sk.

Signed-off-by: Sinthu Raja <sinthu.raja@ti.com>
board/ti/j721e/evm.c

index e184ff0081b70cfc58f769ba853290615c969d2e..892c5393cf093dae073c091dc6a92cf42058313d 100644 (file)
@@ -466,7 +466,8 @@ int board_late_init(void)
                setup_serial();
 
                /* Check for and probe any plugged-in daughtercards */
-               probe_daughtercards();
+               if (board_is_j721e_som() || board_is_j7200_som())
+                       probe_daughtercards();
        }
 
        if (board_is_j7200_som())
@@ -488,8 +489,10 @@ void spl_board_init(void)
 
        if ((IS_ENABLED(CONFIG_TARGET_J721E_A72_EVM) ||
             IS_ENABLED(CONFIG_TARGET_J7200_A72_EVM)) &&
-           IS_ENABLED(CONFIG_TI_I2C_BOARD_DETECT))
-               probe_daughtercards();
+           IS_ENABLED(CONFIG_TI_I2C_BOARD_DETECT)) {
+               if (!board_is_j721e_sk())
+                       probe_daughtercards();
+       }
 
 #ifdef CONFIG_ESM_K3
        if (board_ti_k3_is("J721EX-PM2-SOM")) {