mmc: sdhci: Add 32-bit block count support for v4 mode
authorChunyan Zhang <zhang.chunyan@linaro.org>
Thu, 30 Aug 2018 08:21:41 +0000 (16:21 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 8 Oct 2018 09:40:43 +0000 (11:40 +0200)
commite65953d4a117a6e1d8a7abf9b59c0968da95dd6b
tree06c6e1663a122f69f63956689d96b8957380ff13
parent685e444bbaa0a5ed959f39dbb2f219eb44c30421
mmc: sdhci: Add 32-bit block count support for v4 mode

Host Controller Version 4.10 re-defines SDMA System Address register
as 32-bit Block Count for v4 mode, and SDMA uses ADMA System
Address register (05Fh-058h) instead if v4 mode is enabled. Also
when using 32-bit block count, 16-bit block count register need
to be set to zero.

Since using 32-bit Block Count would cause problems for auto-cmd23,
it can be chosen via host->quirk2.

Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
Acked-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