diff options
author | Faiz Abbas <faiz_abbas@ti.com> | 2020-08-03 11:35:07 +0530 |
---|---|---|
committer | Lokesh Vutla <lokeshvutla@ti.com> | 2020-08-11 20:34:46 +0530 |
commit | f5838b1542e5eeaff1ce78ae1f5671f23c07b1ed (patch) | |
tree | c9ed58393038be7e0772f1802e58c3a391587285 /arch | |
parent | f9916b6d3bdfa71bedd101a442656cc699c89719 (diff) | |
download | u-boot-f5838b1542e5eeaff1ce78ae1f5671f23c07b1ed.tar.gz u-boot-f5838b1542e5eeaff1ce78ae1f5671f23c07b1ed.tar.xz u-boot-f5838b1542e5eeaff1ce78ae1f5671f23c07b1ed.zip |
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-k3/sysfw-loader.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-k3/sysfw-loader.c b/arch/arm/mach-k3/sysfw-loader.c index 96be069ee8..f4b0d4a928 100644 --- a/arch/arm/mach-k3/sysfw-loader.c +++ b/arch/arm/mach-k3/sysfw-loader.c @@ -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); |