mmc: sdhci: Add 64-bit ADMA support
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 4 Nov 2014 10:42:46 +0000 (12:42 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Nov 2014 11:40:53 +0000 (12:40 +0100)
commite57a5f61eae7e145aeeda18ccb22576822f534bf
tree3ac10196b0713885f85d8fae054f3e867c19c77c
parent0545230f1764bc639e14eea3fe944d9d16e91a92
mmc: sdhci: Add 64-bit ADMA support

Add 64-bit ADMA support including:
- add 64-bit ADMA descriptor
- add SDHCI_USE_64_BIT_DMA flag
- set upper 32-bits of DMA addresses
- ability to select 64-bit ADMA
- ability to use 64-bit ADMA sizes and alignment
- display "ADMA 64-bit" when host is added

It is assumed that a 64-bit capable device has set a 64-bit DMA mask
and *must* do 64-bit DMA.  A driver has the opportunity to change
that during the first call to ->enable_dma().  Similarly
SDHCI_QUIRK2_BROKEN_64_BIT_DMA must be left to the drivers to
implement.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h
include/linux/mmc/sdhci.h