Skip to contentSkip to conversation

arm64: imx: Handle both MMC2 and SD2 boot devices on Data Modul i.MX8M Mini eDM SBC

PATCH In review Marek Vasut 2 participants 2 messages Jul 10 – Jul 11 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: imx: Handle both MMC2 and SD2 boot devices on Data Modul i.MX8M Mini eDM SBC

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")

---
Cc: "NXP i.MX U-Boot Team" <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]

---
 board/data_modul/imx8mm_edm_sbc/spl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/data_modul/imx8mm_edm_sbc/spl.c +1 -1
index c6a5740c7a7..6071fb405a7 100644
@@ -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;
Signature · 1 line
2.53.0
Reviewed-by Peng Fan on v1 1/1
#1 lore raw
Quoted 12 lines

Subject: [PATCH] arm64: imx: Handle both MMC2 and SD2 boot devices on Data Modul i.MX8M Mini eDM SBC

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.

Quoted 3 lines
Fixes 0b97a394f6b7 ("ARM: imx: Replace YModem with SDP on Data

Modul i.MX8M Mini eDM SBC SPL")