[PATCH v1 03/17] rockchip: spl-boot-order: add usb boot option
Johan Jonker
jbx6244 at gmail.com
Sun May 8 17:08:11 CEST 2022
Add usb boot option to spl-boot-order.c
Signed-off-by: Johan Jonker <jbx6244 at gmail.com>
---
arch/arm/mach-rockchip/spl-boot-order.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/mach-rockchip/spl-boot-order.c b/arch/arm/mach-rockchip/spl-boot-order.c
index 93b8e7de..c4ba369b 100644
--- a/arch/arm/mach-rockchip/spl-boot-order.c
+++ b/arch/arm/mach-rockchip/spl-boot-order.c
@@ -77,6 +77,9 @@ static int spl_node_to_boot_device(int node)
if (!uclass_get_device_by_of_offset(UCLASS_SPI_FLASH, node, &parent))
return BOOT_DEVICE_SPI;
+ if (!uclass_get_device_by_of_offset(UCLASS_USB, node, &parent))
+ return BOOT_DEVICE_USB;
+
return -1;
}
--
2.20.1
More information about the U-Boot
mailing list