From 0a09912eb336bee788443b919ea5b99b195f5a91 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Sat, 4 Oct 2025 22:13:49 +0100 Subject: [PATCH] hack: mt7987: mmc: use 4-bit bus-width for eMMC The BananaPi R4 Lite has broken DAT5 signal of the MMC bus, which results in 8-bit buswidth not working well for the eMMC. Reduce to 4-bit buswidth fixes it (and makes all other boards with eMMC a tiny bit slower to boot, but it's in the milliseconds). --- plat/mediatek/mt7987/bl2/bl2_dev_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/plat/mediatek/mt7987/bl2/bl2_dev_mmc.c +++ b/plat/mediatek/mt7987/bl2/bl2_dev_mmc.c @@ -74,7 +74,7 @@ static const struct mt7987_msdc_conf { { .base = MSDC0_BASE, .top_base = MSDC0_TOP_BASE, - .bus_width = MMC_BUS_WIDTH_8, + .bus_width = MMC_BUS_WIDTH_4, .type = MMC_IS_EMMC, .src_clk = 200000000, .dev_comp = &mt7987_msdc_compat,