aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFaiz Abbas <faiz_abbas@ti.com>2020-08-03 11:35:04 +0530
committerLokesh Vutla <lokeshvutla@ti.com>2020-08-11 20:34:46 +0530
commitc3ab97c1dd48ef8f4f737f1e83b3e39ccf13a532 (patch)
treed95931e97b97fab811d1afdf17916ef35dbe9e4b /include
parentfc4c380233962ff658a1e23c3455282dcd58a075 (diff)
downloadu-boot-c3ab97c1dd48ef8f4f737f1e83b3e39ccf13a532.zip
u-boot-c3ab97c1dd48ef8f4f737f1e83b3e39ccf13a532.tar.gz
u-boot-c3ab97c1dd48ef8f4f737f1e83b3e39ccf13a532.tar.bz2
spl: usb: Create an API spl_usb_load()
Create a new API spl_usb_load() that takes the filename as a parameter instead of taking the default U-boot PAYLOAD_NAME Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Diffstat (limited to 'include')
-rw-r--r--include/spl.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/spl.h b/include/spl.h
index 580e4e0..b72dfc7 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);