diff mbox series

[v3,79/95] power: wanderboard: Correct conditions for split config

Message ID 20230212231638.1134219-80-sjg@chromium.org
State RFC
Delegated to: Tom Rini
Headers show
Series RFC: Migrate to split config | expand

Commit Message

Simon Glass Feb. 12, 2023, 11:16 p.m. UTC
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@chromium.org>
---

(no changes since v1)

 configs/wandboard_defconfig | 1 +
 include/power/pmic.h        | 3 +--
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Fabio Estevam Feb. 12, 2023, 11:49 p.m. UTC | #1
On Sun, Feb 12, 2023 at 8:47 PM Simon Glass <sjg@chromium.org> wrote:
>
> This currently causes a build error with wanderboard. Fix it by adding a

A typo here and in the Subject, it is "wandboard".
diff mbox series

Patch

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
  * =====================