Commit 09410c65724dd0a58e01f94a518c80befc413d90

Authored by Marek Vasut
Committed by Jaehoon Chung
1 parent b5b838f1a7

SPL: mmc: Make spl_mmc_load_image available

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>

Showing 2 changed files with 5 additions and 2 deletions Side-by-side Diff

common/spl/spl_mmc.c
... ... @@ -272,8 +272,8 @@
272 272 }
273 273 #endif
274 274  
275   -static int spl_mmc_load_image(struct spl_image_info *spl_image,
276   - struct spl_boot_device *bootdev)
  275 +int spl_mmc_load_image(struct spl_image_info *spl_image,
  276 + struct spl_boot_device *bootdev)
277 277 {
278 278 struct mmc *mmc = NULL;
279 279 u32 boot_mode;
... ... @@ -234,5 +234,8 @@
234 234 */
235 235 int spl_dfu_cmd(int usbctrl, char *dfu_alt_info, char *interface, char *devstr);
236 236  
  237 +int spl_mmc_load_image(struct spl_image_info *spl_image,
  238 + struct spl_boot_device *bootdev);
  239 +
237 240 #endif