]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: imx: Use USB SDPS as fallback option on Data Modul i.MX8M Plus eDM SBC
authorMarek Vasut <marex@denx.de>
Wed, 21 Aug 2024 21:01:16 +0000 (23:01 +0200)
committerFabio Estevam <festevam@gmail.com>
Fri, 23 Aug 2024 17:53:27 +0000 (14:53 -0300)
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.

Signed-off-by: Marek Vasut <marex@denx.de>
board/data_modul/imx8mp_edm_sbc/spl.c

index c1935898533297c165569eafa64ecefa62da8e87..f81b7274556f634b114f7c853fa2f529cd846c22 100644 (file)
@@ -100,7 +100,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)