mmc: dw_mmc: Enable low-power mode for the card clock.
authorWill Newton <will.newton@gmail.com>
Thu, 10 Feb 2011 10:40:57 +0000 (10:40 +0000)
committerChris Ball <cjb@laptop.org>
Tue, 15 Mar 2011 17:48:53 +0000 (13:48 -0400)
Setting this bit in the clock enable register will stop the clock
when the card is in the IDLE state.

Signed-off-by: Will Newton <will.newton@imgtec.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/dw_mmc.c

index c01cb8642fb52db4099c62447391ff441a1e8947..cd6d8212dacc25154cc87fa9bbf9c7e2cff9a8b7 100644 (file)
@@ -562,7 +562,8 @@ static void dw_mci_setup_bus(struct dw_mci_slot *slot)
                             SDMMC_CMD_UPD_CLK | SDMMC_CMD_PRV_DAT_WAIT, 0);
 
                /* enable clock */
-               mci_writel(host, CLKENA, SDMMC_CLKEN_ENABLE);
+               mci_writel(host, CLKENA, SDMMC_CLKEN_ENABLE |
+                          SDMMC_CLKEN_LOW_PWR);
 
                /* inform CIU */
                mci_send_cmd(slot,