summaryrefslogtreecommitdiff
path: root/drivers/mmc/meson_gx_mmc.c
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2018-01-26 13:25:29 +0300
committerJaehoon Chung <jh80.chung@samsung.com>2018-05-08 07:12:33 +0300
commit65117182543e58ba69f4abdc998423798137cbae (patch)
treeeadfc8e9646215ff4946949ffd7a09566ef255a3 /drivers/mmc/meson_gx_mmc.c
parent817669231c89a97e3934baf07d457ca9671947ea (diff)
downloadu-boot-65117182543e58ba69f4abdc998423798137cbae.tar.xz
mmc: add the MMC_CLK_ENABLE/DISABLE macro in mmc.h
mmc_set_clock() function has the disable argument as bool type. When mmc_set_clock is called, it might be passed to "true" or "false". But it's too confusion whether clock is enabled or disabled with only "true" and "false". To prevent the confusion, replace to MMC_CLK_ENABLE/DISABLE macro from true/false. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'drivers/mmc/meson_gx_mmc.c')
-rw-r--r--drivers/mmc/meson_gx_mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/meson_gx_mmc.c b/drivers/mmc/meson_gx_mmc.c
index 0aea4770c5..332f1e12a5 100644
--- a/drivers/mmc/meson_gx_mmc.c
+++ b/drivers/mmc/meson_gx_mmc.c
@@ -252,7 +252,7 @@ static int meson_mmc_probe(struct udevice *dev)
mmc->priv = pdata;
upriv->mmc = mmc;
- mmc_set_clock(mmc, cfg->f_min, false);
+ mmc_set_clock(mmc, cfg->f_min, MMC_CLK_ENABLE);
/* reset all status bits */
meson_write(mmc, STATUS_MASK, MESON_SD_EMMC_STATUS);