]> git.sur5r.net Git - u-boot/commitdiff
mmc: sdhci: Disable internal clock enable bit
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Thu, 25 Feb 2016 07:21:50 +0000 (12:51 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 22 Jul 2016 12:03:50 +0000 (14:03 +0200)
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>
drivers/mmc/sdhci.c

index de8d8ea70c447a4bdff18f7e0273d6db761f1c19..9fdbed8aa9e3471656a6de743591caba0cb985f7 100644 (file)
@@ -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)