summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/sdhci.h
diff options
context:
space:
mode:
authorPierre Ossman <drzeus@drzeus.cx>2006-07-02 16:51:35 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-07-02 16:51:35 +0100
commitbab7696184bbf0ea48d56902bd1f9ac983079ad2 (patch)
treef8b90b4c561858c47624307df4d1e67498f23df2 /drivers/mmc/sdhci.h
parenta406f5a3b68ee1db2306a2ba1c9b00dbd3505d05 (diff)
downloadop-kernel-dev-bab7696184bbf0ea48d56902bd1f9ac983079ad2.zip
op-kernel-dev-bab7696184bbf0ea48d56902bd1f9ac983079ad2.tar.gz
[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 f8df28f..8ed2a89 100644
--- a/drivers/mmc/sdhci.h
+++ b/drivers/mmc/sdhci.h
@@ -23,6 +23,7 @@
#define SDHCI_DMA_ADDRESS 0x00
#define SDHCI_BLOCK_SIZE 0x04
+#define SDHCI_MAKE_BLKSZ(dma, blksz) (((dma & 0x7) << 12) | (blksz & 0xFFF))
#define SDHCI_BLOCK_COUNT 0x06
OpenPOWER on IntegriCloud