]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spl: ymodem: Make SPL Y-Modem loader framework accessible
authorAndreas Dannenberg <dannenberg@ti.com>
Thu, 15 Aug 2019 20:55:27 +0000 (15:55 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 11 Oct 2019 14:07:33 +0000 (10:07 -0400)
Expose SPL's Y-Modem core loader function via the common SPL header
file so it can be re-used for purposes other than loading U-Boot itself.

Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
common/spl/spl_ymodem.c
include/spl.h

index 8ad580d8ae574b34fa1eb0980a205c67e67a71d4..c02c05624d48b1997efb227ea1680af3cb326b9b 100644 (file)
@@ -68,8 +68,8 @@ static ulong ymodem_read_fit(struct spl_load_info *load, ulong offset,
        return size;
 }
 
-static int spl_ymodem_load_image(struct spl_image_info *spl_image,
-                                struct spl_boot_device *bootdev)
+int spl_ymodem_load_image(struct spl_image_info *spl_image,
+                         struct spl_boot_device *bootdev)
 {
        ulong size = 0;
        int err;
index 4359636d87bc219465208a33b4ac2062f4be92ff..b5387ef273df31db0601aed37092f34087f54baa 100644 (file)
@@ -434,6 +434,9 @@ int spl_mmc_load(struct spl_image_info *spl_image,
                 int raw_part,
                 unsigned long raw_sect);
 
+int spl_ymodem_load_image(struct spl_image_info *spl_image,
+                         struct spl_boot_device *bootdev);
+
 /**
  * spl_invoke_atf - boot using an ARM trusted firmware image
  */