diff mbox

[2/2] dw_mmc: Enable low-power mode for the card clock.

Message ID AANLkTim4XwhXsBA78WD_0Gsu0=Y4QE6fjGWJdO9D3R5X@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Will Newton Feb. 4, 2011, 11:17 a.m. UTC
None
diff mbox

Patch

From af54e39992a23a5b6b6c853fede652b1df3be37f Mon Sep 17 00:00:00 2001
From: Will Newton <will.newton@imgtec.com>
Date: Thu, 3 Feb 2011 12:18:44 +0000
Subject: [PATCH 2/2] dw_mmc: Enable low-power mode for the card clock.

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>
---
 drivers/mmc/host/dw_mmc.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index 0b0bedd..4cf560d 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -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,
-- 
1.7.3.4