[PATCH v5 08/10] rockchip: spl-boot-order: add usb boot option
Johan Jonker
jbx6244 at gmail.com
Mon Jun 15 23:08:39 CEST 2026
Add usb boot option to spl-boot-order.c
Signed-off-by: Johan Jonker <jbx6244 at gmail.com>
---
Changed V5:
rebase
Changed V4:
(Jonas)
use uclass_find_device_by_of_offset
---
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 d2dd5e10935f..1ed8c5728f2e 100644
--- a/arch/arm/mach-rockchip/spl-boot-order.c
+++ b/arch/arm/mach-rockchip/spl-boot-order.c
@@ -79,6 +79,9 @@ static int spl_node_to_boot_device(int node)
if (!uclass_find_device_by_of_offset(UCLASS_UFS, node, &parent))
return BOOT_DEVICE_UFS;
+ if (!uclass_find_device_by_of_offset(UCLASS_USB, node, &parent))
+ return BOOT_DEVICE_USB;
+
return -1;
}
--
2.39.5
More information about the U-Boot
mailing list