]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
imx8mp_evk: Fix the ND mode VDD_SOC voltage
authorJacky Bai <ping.bai@nxp.com>
Tue, 28 Apr 2026 09:05:17 +0000 (17:05 +0800)
committerFabio Estevam <festevam@gmail.com>
Fri, 15 May 2026 20:31:39 +0000 (17:31 -0300)
The 'CONFIG_IS_ENBLAED' check only works when there is a
CONFIG_SPL_IMX8M_VDD_SOC_850MV config a option is defined and enabled.
So use the 'IS_ENABLED' macro instead to fix the ND mode VDD_SOC voltage.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
board/nxp/imx8mp_evk/spl.c

index 27cd82e745a64920c12704bd84da054d4ffeb9c3..cd7d79b382d1f2ae6a0246795ecfa61c592a6fdd 100644 (file)
@@ -65,7 +65,7 @@ int power_init_board(void)
         * Enable DVS control through PMIC_STBY_REQ and
         * set B1_ENMODE=1 (ON by PMIC_ON_REQ=H)
         */
-       if (CONFIG_IS_ENABLED(IMX8M_VDD_SOC_850MV))
+       if (IS_ENABLED(CONFIG_IMX8M_VDD_SOC_850MV))
                pmic_reg_write(dev, PCA9450_BUCK1OUT_DVS0, 0x14);
        else
                pmic_reg_write(dev, PCA9450_BUCK1OUT_DVS0, 0x1C);