]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm64: imx: Handle both MMC2 and SD2 boot devices on Data Modul i.MX8M Mini eDM SBC
authorMarek Vasut <marex@nabladev.com>
Fri, 10 Jul 2026 22:39:50 +0000 (00:39 +0200)
committerFabio Estevam <festevam@gmail.com>
Mon, 27 Jul 2026 16:05:07 +0000 (13:05 -0300)
Handle both MMC2 and SD2 boot devices as SDMMC device 1 on
Data Modul i.MX8M Mini eDM SBC. In case the system boots from
a microSD card, the BootROM reports boot device as SD2_BOOT
instead of MMC2_BOOT. Continue booting from that SDMMC device
instead of falling back to SDP. Note that SDMMC device 1 is
the microSD slot on this device, SDMMC device 2 is the eMMC,
but BootROM reports the numbers the other way around, hence
the potential confusion in this commit message.

Fixes: 0b97a394f6b7 ("ARM: imx: Replace YModem with SDP on Data Modul i.MX8M Mini eDM SBC SPL")
Signed-off-by: Marek Vasut <marex@nabladev.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
board/data_modul/imx8mm_edm_sbc/spl.c

index c6a5740c7a7050164dbe480407f7434e8a36ad01..6071fb405a70c737acb376c4eaf66efb8f732135 100644 (file)
@@ -59,7 +59,7 @@ int spl_board_boot_device(enum boot_device boot_dev_spl)
 {
        if (boot_dev_spl == MMC3_BOOT)
                return BOOT_DEVICE_MMC2;        /* eMMC */
-       else if (boot_dev_spl == MMC2_BOOT)
+       else if (boot_dev_spl == MMC2_BOOT || boot_dev_spl == SD2_BOOT)
                return BOOT_DEVICE_MMC1;        /* SD */
        else
                return BOOT_DEVICE_BOARD;