aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRichard Genoud <richard.genoud@posteo.net>2020-10-12 16:11:09 +0200
committerPatrick Delaunay <patrick.delaunay@st.com>2020-11-25 10:56:09 +0100
commit40426d6f9a9afea7c16361d780f5475747a55266 (patch)
treeabff432fe70d00594a051d66d5e2704dc79e6512 /arch
parent34d573fdab2a08cb33c1b4631eab93be9e733db1 (diff)
downloadu-boot-40426d6f9a9afea7c16361d780f5475747a55266.zip
u-boot-40426d6f9a9afea7c16361d780f5475747a55266.tar.gz
u-boot-40426d6f9a9afea7c16361d780f5475747a55266.tar.bz2
SPL: stm32mp1: fix spl_mmc_boot_partition not defined
spl_mmc_boot_partition is only defined when CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION is defined. Signed-off-by: Richard Genoud <richard.genoud@posteo.net> Reviewed-by: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-stm32mp/spl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-stm32mp/spl.c b/arch/arm/mach-stm32mp/spl.c
index b679b0a..66a6346 100644
--- a/arch/arm/mach-stm32mp/spl.c
+++ b/arch/arm/mach-stm32mp/spl.c
@@ -55,6 +55,7 @@ u32 spl_mmc_boot_mode(const u32 boot_device)
return MMCSD_MODE_RAW;
}
+#ifdef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
int spl_mmc_boot_partition(const u32 boot_device)
{
switch (boot_device) {
@@ -66,6 +67,7 @@ int spl_mmc_boot_partition(const u32 boot_device)
return -EINVAL;
}
}
+#endif
#ifdef CONFIG_SPL_DISPLAY_PRINT
void spl_display_print(void)