Files
u-boot-krane/drivers/mmc
Omar Ivan FardjoumeandAndre Przywara c83594e844 mmc: sunxi: fix MACH_SUN9I typo in get_mclk_offset()
The get_mclk_offset() function used the non-existent Kconfig symbol
CONFIG_MACH_SUN9I_A80 instead of CONFIG_MACH_SUN9I, causing the
MMC2 clock register to be written at 0x06000090 instead of
0x06000418. This corrupted the CMD2 response and made eMMC
completely unresponsive.
Also the legacy (SPL) sunxi_mmc_init() did not include CONFIG_MACH_SUN9I
in the 8-bit bus width condition, so MMC2 (eMMC) would only use
4-bit mode in the SPL, which is insufficient for reliable boot.

Tested on a Cubieboard4 A80: with both fixes, SPL loads U-Boot proper
and boots Debian 12 from eMMC with no SD card present.

Signed-off-by: Omar Ivan Fardjoume <ivan.fardjoume@email.com>
[Andre: fix mangled patch, trim commit message]
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2026-07-26 22:31:22 +02:00
..
2026-04-28 10:45:07 -05:00