]> git.baikalelectronics.ru Git - uboot.git/commitdiff
Fix MMC numbering issue for Raspberry Pi 3
authorMike Karels <karels@FreeBSD.org>
Wed, 27 Oct 2021 22:26:15 +0000 (22:26 +0000)
committerMatthias Brugger <mbrugger@suse.com>
Tue, 30 Nov 2021 15:07:40 +0000 (16:07 +0100)
Using mmc.dtbo from rpi-firmware to switch the controller for the SD
card slot from sdhci to sdhost causes the numbering to change; the
SD card is then not recognized at boot.  Add to the range checked.

Signed-off-by: Matthias Brugger <mbrugger@suse.com>
include/configs/rpi.h

index 55768a46da2c3476e32f066327b23d1b91bc13d3..4c5c1ac31f92f82f839461b94d941f0362a4bf62 100644 (file)
 #if CONFIG_IS_ENABLED(CMD_MMC)
        #define BOOT_TARGET_MMC(func) \
                func(MMC, mmc, 0) \
-               func(MMC, mmc, 1)
+               func(MMC, mmc, 1) \
+               func(MMC, mmc, 2)
 #else
        #define BOOT_TARGET_MMC(func)
 #endif