summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2017-04-14 08:10:19 (GMT)
committerJaehoon Chung <jh80.chung@samsung.com>2017-05-29 08:28:52 (GMT)
commitf98205c7e44ad6919cc22451cf25eb216d14d25e (patch)
tree7bb182654652a4c9e77e29b78e83415fa06586b0 /drivers/mmc
parentaae78fa774bf5da8d5ac0f80773283196bcb0e24 (diff)
downloadu-boot-f98205c7e44ad6919cc22451cf25eb216d14d25e.tar.xz
mmc: meson: increase max block number per request
Number of blocks is a 9 bit field where 0 stands for a unlimited number of blocks. Therefore the max number of blocks which can be set is 511. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/meson_gx_mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/meson_gx_mmc.c b/drivers/mmc/meson_gx_mmc.c
index 8e28ab7..2dda1b7 100644
--- a/drivers/mmc/meson_gx_mmc.c
+++ b/drivers/mmc/meson_gx_mmc.c
@@ -244,7 +244,7 @@ static int meson_mmc_probe(struct udevice *dev)
MMC_MODE_HS_52MHz | MMC_MODE_HS;
cfg->f_min = DIV_ROUND_UP(SD_EMMC_CLKSRC_24M, CLK_MAX_DIV);
cfg->f_max = 100000000; /* 100 MHz */
- cfg->b_max = 256; /* max 256 blocks */
+ cfg->b_max = 511; /* max 512 - 1 blocks */
cfg->name = dev->name;
mmc->priv = pdata;