diff options
author | Pierre Ossman <drzeus@drzeus.cx> | 2006-07-02 16:51:35 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-07-02 16:51:35 +0100 |
commit | bab7696184bbf0ea48d56902bd1f9ac983079ad2 (patch) | |
tree | f8b90b4c561858c47624307df4d1e67498f23df2 /drivers/mmc/sdhci.h | |
parent | a406f5a3b68ee1db2306a2ba1c9b00dbd3505d05 (diff) | |
download | linux-3.10-bab7696184bbf0ea48d56902bd1f9ac983079ad2.tar.gz linux-3.10-bab7696184bbf0ea48d56902bd1f9ac983079ad2.tar.bz2 linux-3.10-bab7696184bbf0ea48d56902bd1f9ac983079ad2.zip |
[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.h | 1 |
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 @@ #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 |