summaryrefslogtreecommitdiffstats
path: root/include/spl.h
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2018-03-20 10:54:51 +0100
committerTom Rini <trini@konsulko.com>2018-04-06 20:45:28 -0400
commit35a66960cd7358588bd678b4b3dfedb27226fe3e (patch)
tree5ac022abdcdc415468d0a8f7562c7a205f579e18 /include/spl.h
parent52280315a4c58647906a56af8ce79b7ee0c28571 (diff)
downloadu-boot-35a66960cd7358588bd678b4b3dfedb27226fe3e.tar.gz
u-boot-35a66960cd7358588bd678b4b3dfedb27226fe3e.tar.xz
u-boot-35a66960cd7358588bd678b4b3dfedb27226fe3e.zip
spl: spl_mmc: provide one weak function spl_boot_partition
The spl_boot_partition function has been added in order to have the possibility to boot on a same binary from different mmc devices with different partitions. By default keep the current behavior, SPL use the partition defined by CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Signed-off-by: Christophe KERELLO <christophe.kerello@st.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Lukasz Majewski <lukma@denx.de>
Diffstat (limited to 'include/spl.h')
-rw-r--r--include/spl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/spl.h b/include/spl.h
index c14448b8fc..5754012cd0 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -82,6 +82,7 @@ int spl_load_simple_fit(struct spl_image_info *spl_image,
void preloader_console_init(void);
u32 spl_boot_device(void);
u32 spl_boot_mode(const u32 boot_device);
+int spl_boot_partition(const u32 boot_device);
void spl_set_bd(void);
/**