Message ID | 20161201010641.11529-7-marex@denx.de |
---|---|
State | Accepted |
Commit | 09410c65724dd0a58e01f94a518c80befc413d90 |
Headers | show |
On 12/01/2016 10:06 AM, Marek Vasut wrote: > Make the spl_mmc_load_image() available globally, so it can be > invoked directly by SPL on extremely space-constrained systems. > > Signed-off-by: Marek Vasut <marex@denx.de> > Cc: Tom Rini <trini@konsulko.com> > Cc: Simon Glass <sjg@chromium.org> > Cc: Jaehoon Chung <jh80.chung@samsung.com> Applied on u-boot-mmc. Thanks! Best Regards, Jaehoon Chung > --- > common/spl/spl_mmc.c | 4 ++-- > include/spl.h | 3 +++ > 2 files changed, 5 insertions(+), 2 deletions(-) > > diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c > index 7dfcd0b..58b061f 100644 > --- a/common/spl/spl_mmc.c > +++ b/common/spl/spl_mmc.c > @@ -272,8 +272,8 @@ static int spl_mmc_do_fs_boot(struct spl_image_info *spl_image, struct mmc *mmc) > } > #endif > > -static int spl_mmc_load_image(struct spl_image_info *spl_image, > - struct spl_boot_device *bootdev) > +int spl_mmc_load_image(struct spl_image_info *spl_image, > + struct spl_boot_device *bootdev) > { > struct mmc *mmc = NULL; > u32 boot_mode; > diff --git a/include/spl.h b/include/spl.h > index e080a82..c727eb7 100644 > --- a/include/spl.h > +++ b/include/spl.h > @@ -234,4 +234,7 @@ bool spl_was_boot_source(void); > */ > int spl_dfu_cmd(int usbctrl, char *dfu_alt_info, char *interface, char *devstr); > > +int spl_mmc_load_image(struct spl_image_info *spl_image, > + struct spl_boot_device *bootdev); > + > #endif >
diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index 7dfcd0b..58b061f 100644 --- a/common/spl/spl_mmc.c +++ b/common/spl/spl_mmc.c @@ -272,8 +272,8 @@ static int spl_mmc_do_fs_boot(struct spl_image_info *spl_image, struct mmc *mmc) } #endif -static int spl_mmc_load_image(struct spl_image_info *spl_image, - struct spl_boot_device *bootdev) +int spl_mmc_load_image(struct spl_image_info *spl_image, + struct spl_boot_device *bootdev) { struct mmc *mmc = NULL; u32 boot_mode; diff --git a/include/spl.h b/include/spl.h index e080a82..c727eb7 100644 --- a/include/spl.h +++ b/include/spl.h @@ -234,4 +234,7 @@ bool spl_was_boot_source(void); */ int spl_dfu_cmd(int usbctrl, char *dfu_alt_info, char *interface, char *devstr); +int spl_mmc_load_image(struct spl_image_info *spl_image, + struct spl_boot_device *bootdev); + #endif
Make the spl_mmc_load_image() available globally, so it can be invoked directly by SPL on extremely space-constrained systems. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Tom Rini <trini@konsulko.com> Cc: Simon Glass <sjg@chromium.org> Cc: Jaehoon Chung <jh80.chung@samsung.com> --- common/spl/spl_mmc.c | 4 ++-- include/spl.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-)