mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
arm: mach-k3: sysfw-loader: Add support to load SYSFW from USB
Add support for loading system firmware from a USB mass storage device Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
This commit is contained in:
parent
f9916b6d3b
commit
f5838b1542
|
@ -300,6 +300,17 @@ void k3_sysfw_loader(void (*config_pm_pre_callback) (void),
|
|||
ret = k3_sysfw_dfu_download(sysfw_load_address);
|
||||
break;
|
||||
#endif
|
||||
#if CONFIG_IS_ENABLED(USB_STORAGE)
|
||||
case BOOT_DEVICE_USB:
|
||||
ret = spl_usb_load(&spl_image, &bootdev,
|
||||
CONFIG_SYS_USB_FAT_BOOT_PARTITION,
|
||||
#ifdef CONFIG_K3_SYSFW_IMAGE_NAME
|
||||
CONFIG_K3_SYSFW_IMAGE_NAME);
|
||||
#else
|
||||
NULL);
|
||||
#endif
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
panic("Loading SYSFW image from device %u not supported!\n",
|
||||
bootdev.boot_device);
|
||||
|
|
Loading…
Reference in New Issue
Block a user