summaryrefslogtreecommitdiff
path: root/include/spl.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-08-11 23:03:46 -0400
committerTom Rini <trini@konsulko.com>2020-08-11 23:03:46 -0400
commitc25344ff9ae1d764a8e85296736d6e150e34b4fd (patch)
tree3fa53ec91a805d19b4c4ab7a30f60d2bba2d5554 /include/spl.h
parentb298720900752967dd46a5b54a5a303eb11eed95 (diff)
parentdb6451ec0e8483f76f3364293d48e86249c52322 (diff)
Merge tag 'ti-v2020.10-rc3' of https://gitlab.denx.de/u-boot/custodians/u-boot-ti
- Added support for J7200 evm - DM_ETH and DM_USB migrations for omap3 - USB DFU and mass storage support for AM65x evm - RTI watchdog support for K3 devices - Fix an issue with L3 cache on K3 devices
Diffstat (limited to 'include/spl.h')
-rw-r--r--include/spl.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/spl.h b/include/spl.h
index 580e4e024fd..b72dfc7e3d4 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -503,6 +503,20 @@ int spl_mmc_load(struct spl_image_info *spl_image,
int raw_part,
unsigned long raw_sect);
+/**
+ * spl_usb_load() - Load an image file from USB mass storage
+ *
+ * @param spl_image Image data filled in by loading process
+ * @param bootdev Describes which device to load from
+ * @param raw_part Fat partition to load from
+ * @param filename Name of file to load
+ *
+ * @return 0 on success, otherwise error code
+ */
+int spl_usb_load(struct spl_image_info *spl_image,
+ struct spl_boot_device *bootdev,
+ int partition, const char *filename);
+
int spl_ymodem_load_image(struct spl_image_info *spl_image,
struct spl_boot_device *bootdev);