aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/sdhci.h
diff options
context:
space:
mode:
authorPierre Ossman <drzeus@drzeus.cx>2006-07-02 11:51:35 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-07-02 11:51:35 -0400
commitbab7696184bbf0ea48d56902bd1f9ac983079ad2 (patch)
treef8b90b4c561858c47624307df4d1e67498f23df2 /drivers/mmc/sdhci.h
parenta406f5a3b68ee1db2306a2ba1c9b00dbd3505d05 (diff)
[MMC] sdhci: Avoid sdhci DMA boundaries
The sdhci controllers will issue an interrupt when a configurable number of bytes have been transfered using DMA. The purpose is to handle multiple, scattered memory pages. Unfortunately, it requires that all transfers are completely aligned to memory pages, which we cannot guarantee. So we just disable the function. Signed-off-by: Pierre Ossman <drzeus@drzeus.cx> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/mmc/sdhci.h')
-rw-r--r--drivers/mmc/sdhci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/sdhci.h b/drivers/mmc/sdhci.h
index f8df28f8d6d..8ed2a8973db 100644
--- a/drivers/mmc/sdhci.h
+++ b/drivers/mmc/sdhci.h
@@ -23,6 +23,7 @@
23#define SDHCI_DMA_ADDRESS 0x00 23#define SDHCI_DMA_ADDRESS 0x00
24 24
25#define SDHCI_BLOCK_SIZE 0x04 25#define SDHCI_BLOCK_SIZE 0x04
26#define SDHCI_MAKE_BLKSZ(dma, blksz) (((dma & 0x7) << 12) | (blksz & 0xFFF))
26 27
27#define SDHCI_BLOCK_COUNT 0x06 28#define SDHCI_BLOCK_COUNT 0x06
28 29