[PATCH 21/23] Alternative mmc structure to support pxa168, pxa910, mmp2 family SD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From 510b7871a7613ef56fd5f7818415d6c0c85ad7dc Mon Sep 17 00:00:00 2001
From: Philip Rakity <prakity@xxxxxxxxxxx>
Date: Mon, 20 Dec 2010 21:51:51 -0800
Subject: [PATCH] sdhci: add support for H/W clock gating of SD controller

MMP2 controller allows clock gating for SD/eMMC/SDIO cards
by extending the definition for SDCTRL_2_ASYNC_INT_EN in the
host control register 2. The SD Host Controller spec
defines this bit (14) for use with SDIO.

Use standard values in sdhci.h for register.

Signed-off-by: Philip Rakity <prakity@xxxxxxxxxxx>
Signed-off-by: Mark F. Brown <markb@xxxxxxxxxxx>
Tested-by: Philip Rakity
---
 drivers/mmc/host/sdhci-mmp2.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/mmc/host/sdhci-mmp2.c b/drivers/mmc/host/sdhci-mmp2.c
index 6824177..7303421 100644
--- a/drivers/mmc/host/sdhci-mmp2.c
+++ b/drivers/mmc/host/sdhci-mmp2.c
@@ -39,7 +39,6 @@
 
 #define DRIVER_NAME "sdhci-mmp2"
 
-#define HOST_CTRL_2		0x3E
 #define ASYNC_INT_EN		(1 << 14)
 
 #define SD_CFG_FIFO_PARAM       0x100
@@ -148,9 +147,9 @@ static void programFIFO(struct sdhci_host *host, int enable)
 	tmp = readw(host->ioaddr + HOST_CTRL_2);
 
 	if (enable)
-		tmp |= ASYNC_INT_EN;
+		tmp |= SDCTRL_2_ASYNC_INT_EN;
 	else
-		tmp &= ~ASYNC_INT_EN;
+		tmp &= ~SDCTRL_2_ASYNC_INT_EN;
 
 	writew(tmp, host->ioaddr + HOST_CTRL_2);
 }
-- 
1.6.0.4

Attachment: 0021-sdhci-add-support-for-H-W-clock-gating-of-SD-contro.patch
Description: 0021-sdhci-add-support-for-H-W-clock-gating-of-SD-contro.patch


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux