[PATCH v3 79/95] power: wanderboard: Correct conditions for split config
Simon Glass
sjg at chromium.org
Mon Feb 13 00:16:22 CET 2023
This currently causes a build error with wanderboard. Fix it by adding a
missing CONFIG and correcting the build condition so that it does not
change when building SPL.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
(no changes since v1)
configs/wandboard_defconfig | 1 +
include/power/pmic.h | 3 +--
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configs/wandboard_defconfig b/configs/wandboard_defconfig
index a6baff1e24c..05383f6e47b 100644
--- a/configs/wandboard_defconfig
+++ b/configs/wandboard_defconfig
@@ -71,6 +71,7 @@ CONFIG_MII=y
CONFIG_PINCTRL=y
CONFIG_PINCTRL_IMX6=y
CONFIG_DM_PMIC=y
+CONFIG_SPL_DM_PMIC=y
CONFIG_DM_PMIC_PFUZE100=y
CONFIG_DM_SCSI=y
CONFIG_DM_SERIAL=y
diff --git a/include/power/pmic.h b/include/power/pmic.h
index 70f2709bd0b..f3045f82ad7 100644
--- a/include/power/pmic.h
+++ b/include/power/pmic.h
@@ -85,8 +85,7 @@ struct pmic {
};
#endif /* CONFIG_IS_ENABLED(POWER_LEGACY) */
-/* TODO: Change to CONFIG_IS_ENABLED(DM_PMIC) when SPL_DM_PMIC exists */
-#ifdef CONFIG_DM_PMIC
+#ifdef CONFIG_PPL_DM_PMIC
/**
* U-Boot PMIC Framework
* =====================
--
2.39.1.581.gbfd45094c4-goog
More information about the U-Boot
mailing list