]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
mx6: sabreauto/sd: Exclude power_init_board from SPL build
authorPeng Fan <peng.fan@nxp.com>
Tue, 21 Apr 2026 13:41:20 +0000 (21:41 +0800)
committerFabio Estevam <festevam@gmail.com>
Tue, 21 Apr 2026 23:49:39 +0000 (20:49 -0300)
To mx6sabreauto and mx6sabresd, power_init_board is called in board_r phase.
After CONFIG_SPL_DM_PMIC_PFUZE100 included, there will be build error to build
power_init_board() when CONFIG_SPL_DM_PMIC_PFUZE100 is not enabled.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
board/nxp/mx6sabreauto/mx6sabreauto.c
board/nxp/mx6sabresd/mx6sabresd.c

index 8ca57e0b2ac9b92d827d650b0598b73c8d463189..aef8bc0ad909e0d1e263f2ec14b4cea5ea8bf31b 100644 (file)
@@ -465,6 +465,7 @@ int board_spi_cs_gpio(unsigned bus, unsigned cs)
 }
 #endif
 
+#ifndef CONFIG_XPL_BUILD
 int power_init_board(void)
 {
        struct udevice *dev;
@@ -488,6 +489,7 @@ int power_init_board(void)
 
        return pfuze_mode_init(dev, APS_PFM);
 }
+#endif
 
 #ifdef CONFIG_CMD_BMODE
 static const struct boot_mode board_boot_modes[] = {
index dff3a9c33bfd4f95940241818f4f896564d502c1..9404535104c3ee9d006169d5a09fd8fe86aa4201 100644 (file)
@@ -437,6 +437,7 @@ int board_init(void)
        return 0;
 }
 
+#ifndef CONFIG_XPL_BUILD
 int power_init_board(void)
 {
        struct udevice *dev;
@@ -468,6 +469,7 @@ int power_init_board(void)
 
        return 0;
 }
+#endif
 
 #ifdef CONFIG_MXC_SPI
 int board_spi_cs_gpio(unsigned bus, unsigned cs)