public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] dw_mmc: Enable low-power mode for the card clock.
@ 2011-02-10 10:40 Will Newton
  2011-02-10 19:44 ` Chris Ball
  0 siblings, 1 reply; 3+ messages in thread
From: Will Newton @ 2011-02-10 10:40 UTC (permalink / raw)
  To: linux-mmc, Chris Ball

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread
* [PATCH 2/2] dw_mmc: Enable low-power mode for the card clock.
@ 2011-02-04 11:17 Will Newton
  0 siblings, 0 replies; 3+ messages in thread
From: Will Newton @ 2011-02-04 11:17 UTC (permalink / raw)
  To: linux-mmc

[-- Attachment #1: Type: text/plain, Size: 746 bytes --]

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

[-- Attachment #2: 0002-dw_mmc-Enable-low-power-mode-for-the-card-clock.patch --]
[-- Type: text/x-patch, Size: 972 bytes --]

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-02-10 19:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-10 10:40 [PATCH 2/2] dw_mmc: Enable low-power mode for the card clock Will Newton
2011-02-10 19:44 ` Chris Ball
  -- strict thread matches above, loose matches on Subject: below --
2011-02-04 11:17 Will Newton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox