mmc: fsl_esdhc_imx: fix config check issue when building in SPL
Subsystems (2)
PATCH 1/1 mmc: fsl_esdhc_imx: fix config check issue when building in SPL
Should use CONFIG_IS_ENABLED not IS_ENABLED for clock and regulator drivers, CONFIG_IS_ENABLED will check the CONFIG_SPL_CLK and CONFIG_SPL_DM_REGULATOR when building SPL.
--- drivers/mmc/fsl_esdhc_imx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mmc/fsl_esdhc_imx.c +2 -2
@@ -146,7 +146,7 @@ struct fsl_esdhc_priv {u32 tuning_start_tap;u32 strobe_dll_delay_target;u32 signal_voltage; -#if IS_ENABLED (CONFIG_DM_REGULATOR ) +#if CONFIG_IS_ENABLED (DM_REGULATOR )struct udevice *vqmmc_dev;struct udevice *vmmc_dev;#endif
@@ -1515,7 +1515,7 @@ static int fsl_esdhc_probe(struct udevice *dev)init_clk_usdhc (dev->seq); -if (IS_ENABLED (CONFIG_CLK )) { +if (CONFIG_IS_ENABLED (CLK )) {/* Assigned clock already set clock */ ret =clk_get_by_name (dev,"per" , &priv->per_clk);if (ret) {
Signature · 1 line
2.7.4
PATCH 1/1 mmc: fsl_esdhc_imx: fix config check issue when building in SPL
Quoted 10 lines · Ye Li
Should use
CONFIG_IS_ENABLEDnotIS_ENABLEDfor clock and regulator drivers,CONFIG_IS_ENABLEDwill check theCONFIG_SPL_CLKandCONFIG_SPL_DM_REGULATORwhen building SPL.Signed-off-by Ye Li <[email protected]>--- drivers/mmc/fsl_esdhc_imx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Peng Fan
AppliedPATCH 1/1 mmc: fsl_esdhc_imx: fix config check issue when building in SPL
In reply to Ye LiQuoted 26 lines
Subject: [PATCH] mmc:
fsl_esdhc_imx: fix config check issue when building in SPLShould use
CONFIG_IS_ENABLEDnotIS_ENABLEDfor clock and regulator drivers,CONFIG_IS_ENABLEDwill check theCONFIG_SPL_CLKandCONFIG_SPL_DM_REGULATORwhen building SPL.Signed-off-by Ye Li <[email protected]>--- drivers/mmc/fsl_esdhc_imx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/mmc/fsl_esdhc_imx.c +1
-1@@ -146,7 +146,7 @@ struct fsl_esdhc_priv {u32 tuning_start_tap;u32 strobe_dll_delay_target;u32 signal_voltage; -#if IS_ENABLED (CONFIG_DM_REGULATOR ) +#if CONFIG_IS_ENABLED (DM_REGULATOR )struct udevice *vqmmc_dev;struct udevice *vmmc_dev;#endif
drivers/mmc/fsl_esdhc_imx.c static int fsl_esdhc_probe(struct udevice *dev) · line 1521
Quoted 8 lines
drivers/mmc/fsl_esdhc_imx.c +1
-1@@ -1515,7 +1515,7 @@ static int fsl_esdhc_probe(struct udevice *dev)init_clk_usdhc (dev->seq); -if (IS_ENABLED (CONFIG_CLK )) { +if (CONFIG_IS_ENABLED (CLK )) {/* Assigned clock already set clock */ ret =clk_get_by_name (dev,"per" , &priv->per_clk);if (ret) {
Applied to mmc/master.
Thanks,
Peng.
Quoted 2 lines
--
2.7.4