]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: add USB2_BOOT type
authorPeng Fan <peng.fan@nxp.com>
Tue, 26 Jul 2022 08:40:38 +0000 (16:40 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 26 Jul 2022 09:29:00 +0000 (11:29 +0200)
Add USB2_BOOT type for i.MX8ULP and i.MX9

Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/include/asm/mach-imx/boot_mode.h
arch/arm/mach-imx/romapi.c

index 6dc58559680a15882b7f0aeb53516e628a839aa3..a568c4437228dbe52af520a94003af2b786abc51 100644 (file)
@@ -29,6 +29,7 @@ enum boot_device {
        QSPI_BOOT,
        FLEXSPI_BOOT,
        USB_BOOT,
+       USB2_BOOT,
        UNKNOWN_BOOT,
        BOOT_DEV_NUM = UNKNOWN_BOOT,
 };
index 4b5f50c030098334bc9523d8931f0676d05d15a6..c8accdb04db596a650da4b8cd86faa73bfbdcc95 100644 (file)
@@ -67,7 +67,7 @@ enum boot_device get_boot_device(void)
                boot_dev = QSPI_BOOT;
                break;
        case BT_DEV_TYPE_USB:
-               boot_dev = USB_BOOT;
+               boot_dev = boot_instance + USB_BOOT;
                break;
        default:
                break;