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>
}
#endif
+#ifndef CONFIG_XPL_BUILD
int power_init_board(void)
{
struct udevice *dev;
return pfuze_mode_init(dev, APS_PFM);
}
+#endif
#ifdef CONFIG_CMD_BMODE
static const struct boot_mode board_boot_modes[] = {
return 0;
}
+#ifndef CONFIG_XPL_BUILD
int power_init_board(void)
{
struct udevice *dev;
return 0;
}
+#endif
#ifdef CONFIG_MXC_SPI
int board_spi_cs_gpio(unsigned bus, unsigned cs)