Make it possible to boot over gadget. Signed-off-by: Arnaud Patard <arnaud.pat...@collabora.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 3dce9b30898..7cc410d0ae7 100644 --- a/arch/arm/mach-rockchip/spl-boot-order.c +++ b/arch/arm/mach-rockchip/spl-boot-order.c @@ -75,6 +75,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_GADGET_GENERIC, node, &parent)) + return BOOT_DEVICE_DFU; + return -1; } -- 2.39.5