From: Tim Harvey Date: Mon, 24 Apr 2023 16:33:44 +0000 (-0700) Subject: imx: fix get_boot_device() for imx8 X-Git-Tag: v2025.01-rc5-pxa1908~1015^2~16 X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/%7B%7B?a=commitdiff_plain;h=a48a824dbac4a33e4b27b9f568ea28c52b631658;p=u-boot.git imx: fix get_boot_device() for imx8 commit 787f04bb6a0a ("imx: add USB2_BOOT type") broke get_boot_device() for IMX8 which affects booting from SDP due to boot_instance being non-zero. Fix this by only using boot_instance for imx8ulp and imx9. Fixes: 787f04bb6a0a ("imx: add USB2_BOOT type") Signed-off-by: Tim Harvey Reviewed-by: Peng Fan Reviewed-by: Fabio Estevam --- diff --git a/arch/arm/mach-imx/romapi.c b/arch/arm/mach-imx/romapi.c index b49e7f80a2..ff0522c2d1 100644 --- a/arch/arm/mach-imx/romapi.c +++ b/arch/arm/mach-imx/romapi.c @@ -70,6 +70,8 @@ enum boot_device get_boot_device(void) boot_dev = SPI_NOR_BOOT; break; case BT_DEV_TYPE_USB: + if (!is_imx8ulp() && !is_imx9()) + boot_instance = 0; boot_dev = boot_instance + USB_BOOT; break; default: