]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: Change USB boot device type
authorYe Li <ye.li@nxp.com>
Tue, 26 Jul 2022 08:40:33 +0000 (16:40 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 26 Jul 2022 09:29:00 +0000 (11:29 +0200)
The SPL SDP is configured as BOOT_DEVICE_BOARD, so when booting from
USB, change its type to BOOT_DEVICE_BOARD, so we can use SDP.

Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/spl.c

index 64ca296772127292faf69d86c24536dd351d1a93..e89e2277ef7444a3f11bd70d68fbc8f9ddab895a 100644 (file)
@@ -177,7 +177,7 @@ u32 spl_boot_device(void)
        case QSPI_BOOT:
                return BOOT_DEVICE_NOR;
        case USB_BOOT:
-               return BOOT_DEVICE_USB;
+               return BOOT_DEVICE_BOARD;
        default:
                return BOOT_DEVICE_NONE;
        }