mirror of
https://xff.cz/git/u-boot/
synced 2025-10-18 08:23:24 +02:00
mmc: mediatek: set b_max according CONFIG_SYS_MMC_MAX_BLK_COUNT
The block count limit on MMC based devices should be set according to CONFIG_SYS_MMC_MAX_BLK_COUNT instead of hardcoding value. Signed-off-by: Julien Masson <jmasson@baylibre.com>
This commit is contained in:
@@ -1665,7 +1665,7 @@ static int msdc_drv_probe(struct udevice *dev)
|
|||||||
if (cfg->f_max < cfg->f_min || cfg->f_max > host->src_clk_freq)
|
if (cfg->f_max < cfg->f_min || cfg->f_max > host->src_clk_freq)
|
||||||
cfg->f_max = host->src_clk_freq;
|
cfg->f_max = host->src_clk_freq;
|
||||||
|
|
||||||
cfg->b_max = 1024;
|
cfg->b_max = CONFIG_SYS_MMC_MAX_BLK_COUNT;
|
||||||
cfg->voltages = MMC_VDD_32_33 | MMC_VDD_33_34;
|
cfg->voltages = MMC_VDD_32_33 | MMC_VDD_33_34;
|
||||||
|
|
||||||
host->mmc = &plat->mmc;
|
host->mmc = &plat->mmc;
|
||||||
|
Reference in New Issue
Block a user