summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2018-01-26 13:25:30 +0300
committerJaehoon Chung <jh80.chung@samsung.com>2018-05-08 07:12:33 +0300
commitd2faadb59c2be743854fe8e084def919c19b9634 (patch)
tree2cc86ed22f30f6047e9872961222925388bf85ed /drivers/mmc
parent65117182543e58ba69f4abdc998423798137cbae (diff)
downloadu-boot-d2faadb59c2be743854fe8e084def919c19b9634.tar.xz
mmc: add the debug message in mmc_set_clock
Add the debug message for checking the mmc clock status. It's helpful to debug the controlling clock. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/mmc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 29971a5047..a08c69476c 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -1506,6 +1506,8 @@ int mmc_set_clock(struct mmc *mmc, uint clock, bool disable)
mmc->clock = clock;
mmc->clk_disable = disable;
+ debug("clock is %s (%dHz)\n", disable ? "disabled" : "enabled", clock);
+
return mmc_set_ios(mmc);
}