summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>2016-02-25 12:51:50 +0530
committerMichal Simek <michal.simek@xilinx.com>2016-07-22 14:03:50 +0200
commit1d405e207bb176c937d44f9a5f87e268022c2416 (patch)
tree7422ff0cdad8de13369f9be8525eb9d75c82d96c /drivers/mmc
parent211815784c0e35a274e13054a7966b21098f8a14 (diff)
downloadu-boot-imx-1d405e207bb176c937d44f9a5f87e268022c2416.zip
u-boot-imx-1d405e207bb176c937d44f9a5f87e268022c2416.tar.gz
u-boot-imx-1d405e207bb176c937d44f9a5f87e268022c2416.tar.bz2
mmc: sdhci: Disable internal clock enable bit
Disable internal clock by clearing the internal clock enable bit. This bit needs to be cleared too when we stop the SDCLK for changing the frequency divisor. This bit should be set to zero when the device is not using the Host controller. Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/sdhci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
index de8d8ea..9fdbed8 100644
--- a/drivers/mmc/sdhci.c
+++ b/drivers/mmc/sdhci.c
@@ -313,7 +313,7 @@ static int sdhci_set_clock(struct mmc *mmc, unsigned int clock)
}
reg = sdhci_readw(host, SDHCI_CLOCK_CONTROL);
- reg &= ~SDHCI_CLOCK_CARD_EN;
+ reg &= ~(SDHCI_CLOCK_CARD_EN | SDHCI_CLOCK_INT_EN);
sdhci_writew(host, reg, SDHCI_CLOCK_CONTROL);
if (clock == 0)