Re: [U-Boot] [PATCH 2/7] spl: ymodem: Make SPL Y-Modem loader framework accessible

2019-10-12 Thread Tom Rini
On Thu, Aug 15, 2019 at 03:55:27PM -0500, Andreas Dannenberg wrote:

> 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 

Applied to u-boot/master, thanks!

-- 
Tom


signature.asc
Description: PGP signature
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH 2/7] spl: ymodem: Make SPL Y-Modem loader framework accessible

2019-08-15 Thread Andreas Dannenberg
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 
---
 common/spl/spl_ymodem.c | 4 ++--
 include/spl.h   | 3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/common/spl/spl_ymodem.c b/common/spl/spl_ymodem.c
index 8ad580d8ae..c02c05624d 100644
--- a/common/spl/spl_ymodem.c
+++ b/common/spl/spl_ymodem.c
@@ -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;
diff --git a/include/spl.h b/include/spl.h
index a90f971a23..a2c6278c00 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -356,6 +356,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
  */
-- 
2.17.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot