diff options
author | Kyungmin Park <kyungmin.park@samsung.com> | 2010-08-10 21:01:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-11 11:59:03 -0400 |
commit | ae6d6c92212e94b12ab9365c23fb73acc2c3c2e7 (patch) | |
tree | ab0337dcb0528d39c8c34cecb845c22b42e50c51 /drivers/mmc | |
parent | cfd1f82f20e0c557a061189f7d8c30d623fbe313 (diff) |
sdhci: 8-bit data transfer width support
Some host controllers such as s5pc110 support the WIDE8 feature.
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sdhci.c | 5 | ||||
-rw-r--r-- | drivers/mmc/host/sdhci.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 8da164bef048..f34ec5d6bccf 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c | |||
@@ -1159,6 +1159,11 @@ static void sdhci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) | |||
1159 | 1159 | ||
1160 | ctrl = sdhci_readb(host, SDHCI_HOST_CONTROL); | 1160 | ctrl = sdhci_readb(host, SDHCI_HOST_CONTROL); |
1161 | 1161 | ||
1162 | if (ios->bus_width == MMC_BUS_WIDTH_8) | ||
1163 | ctrl |= SDHCI_CTRL_8BITBUS; | ||
1164 | else | ||
1165 | ctrl &= ~SDHCI_CTRL_8BITBUS; | ||
1166 | |||
1162 | if (ios->bus_width == MMC_BUS_WIDTH_4) | 1167 | if (ios->bus_width == MMC_BUS_WIDTH_4) |
1163 | ctrl |= SDHCI_CTRL_4BITBUS; | 1168 | ctrl |= SDHCI_CTRL_4BITBUS; |
1164 | else | 1169 | else |
diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h index b1839a315b86..030de492880e 100644 --- a/drivers/mmc/host/sdhci.h +++ b/drivers/mmc/host/sdhci.h | |||
@@ -72,6 +72,7 @@ | |||
72 | #define SDHCI_CTRL_ADMA1 0x08 | 72 | #define SDHCI_CTRL_ADMA1 0x08 |
73 | #define SDHCI_CTRL_ADMA32 0x10 | 73 | #define SDHCI_CTRL_ADMA32 0x10 |
74 | #define SDHCI_CTRL_ADMA64 0x18 | 74 | #define SDHCI_CTRL_ADMA64 0x18 |
75 | #define SDHCI_CTRL_8BITBUS 0x20 | ||
75 | 76 | ||
76 | #define SDHCI_POWER_CONTROL 0x29 | 77 | #define SDHCI_POWER_CONTROL 0x29 |
77 | #define SDHCI_POWER_ON 0x01 | 78 | #define SDHCI_POWER_ON 0x01 |