Skip to contentSkip to conversation

ARM: imx: Use USB SDPS as fallback option on Data Modul i.MX8M Plus eDM SBC

PATCH Applied Marek Vasut 2 participants 2 messages Aug 21, 2024 – Aug 23, 2024 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: imx: Use USB SDPS as fallback option on Data Modul i.MX8M Plus eDM SBC

The Data Modul i.MX8M Plus eDM SBC does have USB gadget capable port accessible via USB A-A cable plugged into the bottom USB 3.0 port. Use USB SDPS as the fallback boot device, so USB SDPS loading can be performed using e.g. uuu tool.

---
Cc: Fabio Estevam <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]

---
 board/data_modul/imx8mp_edm_sbc/spl.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
board/data_modul/imx8mp_edm_sbc/spl.c +4 -1
index c0b50e3e3da..ce9da9451c4 100644
@@ -104,7 +104,10 @@ int spl_board_boot_device(enum boot_device boot_dev_spl)
 	if (boot_dev_spl == MMC3_BOOT)		/* eMMC */
 		return BOOT_DEVICE_MMC2;
 
-	return BOOT_DEVICE_MMC1;		/* SD */
+	if (boot_dev_spl == SD2_BOOT)		/* SD */
+		return BOOT_DEVICE_MMC1;
+
+	return BOOT_DEVICE_BOOTROM;		/* USB SDPS */
 }
 
 void board_boot_order(u32 *spl_boot_list)
Signature · 1 line
2.43.0
reviewer Applied
#1 lore raw
Quoted 7 lines · Marek Vasut

The Data Modul i.MX8M Plus eDM SBC does have USB gadget capable port accessible via USB A-A cable plugged into the bottom USB 3.0 port. Use USB SDPS as the fallback boot device, so USB SDPS loading can be performed using e.g. uuu tool.

Applied, thanks.