]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: mtk-sd: increase the minimum bus frequency
authorWeijie Gao <weijie.gao@mediatek.com>
Tue, 20 Apr 2021 08:37:10 +0000 (16:37 +0800)
committerPeng Fan <peng.fan@nxp.com>
Tue, 22 Jun 2021 04:01:52 +0000 (12:01 +0800)
commit3a3672cc3769a43750dd9fea90ed7a7900cb227f
tree17108ca3d865c3b2fb9e2b98f29c2e3ed400584d
parent97c8cb524c19f054036efd2b4429273bd503e39c
mmc: mtk-sd: increase the minimum bus frequency

With a 48MHz input clock, the lowest bus frequency can be as low as
48000000 / (4 * 4095) = 2930Hz. Such an extremely low frequency will cause
the mmc framework take seconds to finish the initialization.

Limiting the minimum bus frequency to a slightly higher value can solve the
issue without any side effects.

Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
drivers/mmc/mtk-sd.c