mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
mmc: disable the mmc clock during power off
There is no point in having the mmc clock enabled during power off. Disable the mmc clock. This is similar to how it's programmed in Linux Kernel. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Vignesh R <vigneshr@ti.com> Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
35f6782055
commit
2e7410d76a
1 changed files with 1 additions and 0 deletions
|
@ -1971,6 +1971,7 @@ static int mmc_power_on(struct mmc *mmc)
|
|||
|
||||
static int mmc_power_off(struct mmc *mmc)
|
||||
{
|
||||
mmc_set_clock(mmc, 1, true);
|
||||
#if CONFIG_IS_ENABLED(DM_MMC) && CONFIG_IS_ENABLED(DM_REGULATOR)
|
||||
if (mmc->vmmc_supply) {
|
||||
int ret = regulator_set_enable(mmc->vmmc_supply, false);
|
||||
|
|
Loading…
Reference in a new issue