diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2017-08-03 14:46:13 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-08-30 14:01:54 +0200 |
commit | c846a00f72bf21b4cece98ffd8f28e80d5d7fed1 (patch) | |
tree | 71f1a5ee029c1a9806c6b52198cccd174ce99284 /drivers/mmc/host/sdhci.h | |
parent | 101540680976fc4f30739edd84a134352e3aeab8 (diff) | |
download | linux-c846a00f72bf21b4cece98ffd8f28e80d5d7fed1.tar.gz linux-c846a00f72bf21b4cece98ffd8f28e80d5d7fed1.tar.bz2 linux-c846a00f72bf21b4cece98ffd8f28e80d5d7fed1.zip |
mmc: sdhci: add sdma_boundary member to struct sdhci_host
This patch adds sdma_boundary member to struct sdhci_host to give more
flexibility to drivers to control the sdma boundary buffer value and
also to fix issue on some sdhci controllers which are broken when
HOST SDMA Buffer Boundary is programmed in Block Size Register (0x04)
when using ADMA. Qualcomm sdhci controller is one of such type, writing
to this bits is un-supported.
Default value of sdma_boundary is set to SDHCI_DEFAULT_BOUNDARY_ARG.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/sdhci.h')
-rw-r--r-- | drivers/mmc/host/sdhci.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h index 0469fa191493..399edc681623 100644 --- a/drivers/mmc/host/sdhci.h +++ b/drivers/mmc/host/sdhci.h @@ -541,6 +541,9 @@ struct sdhci_host { /* Delay (ms) between tuning commands */ int tuning_delay; + /* Host SDMA buffer boundary. */ + u32 sdma_boundary; + unsigned long private[0] ____cacheline_aligned; }; |