summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci-iproc.c
diff options
context:
space:
mode:
authorStefan Wahren <stefan.wahren@i2se.com>2016-12-30 15:24:33 +0000
committerUlf Hansson <ulf.hansson@linaro.org>2017-02-13 13:19:55 +0100
commit40165de23df9ed4a630dcd991d63b8cb453e4ba8 (patch)
treecfee058c2c06d47c75650b06aa2600b9dcaa33d2 /drivers/mmc/host/sdhci-iproc.c
parentc82c27754349168ff52cbf2f878210f8ef384f8b (diff)
downloadtalos-obmc-linux-40165de23df9ed4a630dcd991d63b8cb453e4ba8.tar.gz
talos-obmc-linux-40165de23df9ed4a630dcd991d63b8cb453e4ba8.zip
mmc: sdhci-iproc: Increase max_blk_size for bcm2835
According to the BCM2835 datasheet the maximum block size for the eMMC module is restricted to the internal data FIFO which is 1024 byte. But this is still an improvement to the default of 512 byte. Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com> Reviewed-by: Eric Anholt <eric@anholt.net> Acked-by: Scott Branden <scott.branden@broadcom.com> Acked-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-iproc.c')
-rw-r--r--drivers/mmc/host/sdhci-iproc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-iproc.c b/drivers/mmc/host/sdhci-iproc.c
index 30b3fdf52c58..3275d4995812 100644
--- a/drivers/mmc/host/sdhci-iproc.c
+++ b/drivers/mmc/host/sdhci-iproc.c
@@ -218,7 +218,9 @@ static const struct sdhci_pltfm_data sdhci_bcm2835_pltfm_data = {
static const struct sdhci_iproc_data bcm2835_data = {
.pdata = &sdhci_bcm2835_pltfm_data,
- .caps = SDHCI_CAN_VDD_330 |
+ .caps = ((0x1 << SDHCI_MAX_BLOCK_SHIFT)
+ & SDHCI_MAX_BLOCK_MASK) |
+ SDHCI_CAN_VDD_330 |
SDHCI_CAN_DO_HISPD,
.caps1 = SDHCI_DRIVER_TYPE_A |
SDHCI_DRIVER_TYPE_C,
OpenPOWER on IntegriCloud