]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
SPL: mmc: Make spl_mmc_load_image available
authorMarek Vasut <marex@denx.de>
Thu, 1 Dec 2016 01:06:35 +0000 (02:06 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 1 Dec 2016 05:06:41 +0000 (14:06 +0900)
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
include/spl.h

index 7dfcd0ba2a40de1a8cf293c14894ea1353a988cf..58b061f76baadd720f67f444c1e5812996502813 100644 (file)
@@ -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;
index e080a82b979dce663eadea7cca8126e7970c23b7..c727eb76d4276fe636e27789b9ce8fa8f6109333 100644 (file)
@@ -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