]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
mmc: meson_gx_mmc: reduce maximum frequency
authorNick Xie <xieqinick@gmail.com>
Tue, 9 Dec 2025 05:57:50 +0000 (13:57 +0800)
committerNeil Armstrong <neil.armstrong@linaro.org>
Thu, 11 Dec 2025 16:26:31 +0000 (17:26 +0100)
Reduce the maximum frequency to 40MHz to be compatible with
more eMMC. And the Amlogic vendor U-Boot also use the maximum
frequency of 40MHz.

Signed-off-by: Nick Xie <nick@khadas.com>
Link: https://patch.msgid.link/20251209055750.43594-1-nick@khadas.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
drivers/mmc/meson_gx_mmc.c

index d1558ebe3a24930050888866367b68e94f54f519..76af3873e1575ca3b31f828cfe72c72690ae3473 100644 (file)
@@ -348,7 +348,7 @@ static int meson_mmc_probe(struct udevice *dev)
        cfg->host_caps = MMC_MODE_8BIT | MMC_MODE_4BIT |
                        MMC_MODE_HS_52MHz | MMC_MODE_HS;
        cfg->f_min = DIV_ROUND_UP(SD_EMMC_CLKSRC_24M, CLK_MAX_DIV);
-       cfg->f_max = 100000000; /* 100 MHz */
+       cfg->f_max = 40000000; /* 40 MHz */
        cfg->b_max = 511; /* max 512 - 1 blocks */
        cfg->name = dev->name;