summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2012-08-10 09:27:14 -0700
committerTom Rini <trini@ti.com>2012-09-27 09:48:37 -0700
commit0da113e9fd353ce08dda0ac9d79694b673174bda (patch)
treeba94a863f8d9340e66eeed2b660e4ffaf8ce8107 /arch/arm/cpu
parent659e559d55fd72862d3374ce4453df13cc5a69ec (diff)
downloadtalos-obmc-uboot-0da113e9fd353ce08dda0ac9d79694b673174bda.tar.gz
talos-obmc-uboot-0da113e9fd353ce08dda0ac9d79694b673174bda.zip
spl_mmc: Make FAT checks / calls guarded with CONFIG_SPL_FAT_SUPPORT
Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r--arch/arm/cpu/armv7/omap-common/spl_mmc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/omap-common/spl_mmc.c b/arch/arm/cpu/armv7/omap-common/spl_mmc.c
index 2f921bb07d..7552f6c360 100644
--- a/arch/arm/cpu/armv7/omap-common/spl_mmc.c
+++ b/arch/arm/cpu/armv7/omap-common/spl_mmc.c
@@ -84,6 +84,7 @@ end:
}
}
+#ifdef CONFIG_SPL_FAT_SUPPORT
static void mmc_load_image_fat(struct mmc *mmc)
{
s32 err;
@@ -116,6 +117,7 @@ end:
hang();
}
}
+#endif
void spl_mmc_load_image(void)
{
@@ -140,9 +142,11 @@ void spl_mmc_load_image(void)
if (boot_mode == MMCSD_MODE_RAW) {
debug("boot mode - RAW\n");
mmc_load_image_raw(mmc);
+#ifdef CONFIG_SPL_FAT_SUPPORT
} else if (boot_mode == MMCSD_MODE_FAT) {
debug("boot mode - FAT\n");
mmc_load_image_fat(mmc);
+#endif
} else {
puts("spl: wrong MMC boot mode\n");
hang();
OpenPOWER on IntegriCloud