uboot-mtk-20250711: 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.

Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
This commit is contained in:
Weijie Gao
2021-03-02 15:56:17 +08:00
committed by hanwckf
parent 6167e64b76
commit ceaf16b834

View File

@@ -232,7 +232,7 @@
#define SCLK_CYCLES_SHIFT 20
#define MIN_BUS_CLK 200000
#define MIN_BUS_CLK 260000
#define CMD_INTS_MASK \
(MSDC_INT_CMDRDY | MSDC_INT_RSPCRCERR | MSDC_INT_CMDTMO)