mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
mmc: fsl_esdhc: fix f_max retrieval during init
for multi instance API we use struct fsl_esdhc_cfg to pass the clock rate. Do not set f_max from global data, since this is wrong for multi instance case. Signed-off-by: Markus Niebel <Markus.Niebel@tq-group.com> Acked-by: Stefano Babic <sbabic@denx.de> Tested-by: Eric Nelson <eric.nelson@boundarydevices.com> Reviewed-by: York Sun <yorksun@freescale.com>
This commit is contained in:
parent
c35f869394
commit
3b4b9a3377
1 changed files with 1 additions and 1 deletions
|
@ -610,7 +610,7 @@ int fsl_esdhc_initialize(bd_t *bis, struct fsl_esdhc_cfg *cfg)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
cfg->cfg.f_min = 400000;
|
cfg->cfg.f_min = 400000;
|
||||||
cfg->cfg.f_max = min(gd->arch.sdhc_clk, 52000000);
|
cfg->cfg.f_max = min(cfg->sdhc_clk, 52000000);
|
||||||
|
|
||||||
cfg->cfg.b_max = CONFIG_SYS_MMC_MAX_BLK_COUNT;
|
cfg->cfg.b_max = CONFIG_SYS_MMC_MAX_BLK_COUNT;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue