mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
imx: fix get_boot_device() for imx8
commit787f04bb6a
("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:787f04bb6a
("imx: add USB2_BOOT type") Signed-off-by: Tim Harvey <tharvey@gateworks.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Fabio Estevam <festevam@denx.de>
This commit is contained in:
parent
1490292a07
commit
a48a824dba
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue