提交 3b4b9a33 编写于 作者: M Markus Niebel 提交者: York Sun

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: NMarkus Niebel <Markus.Niebel@tq-group.com>
Acked-by: NStefano Babic <sbabic@denx.de>
Tested-by: NEric Nelson <eric.nelson@boundarydevices.com>
Reviewed-by: NYork Sun <yorksun@freescale.com>
上级 c35f8693
......@@ -610,7 +610,7 @@ int fsl_esdhc_initialize(bd_t *bis, struct fsl_esdhc_cfg *cfg)
#endif
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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册