summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mvebu
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2015-07-20 11:20:36 +0200
committerLuka Perkov <luka.perkov@sartura.hr>2015-07-24 09:45:30 +0200
commit8ed43b966ccf7f1153f553dce86de60a6e0e9d9a (patch)
treea6338ae041fd0ad74b4d40cb8f9fdde736ec5e72 /arch/arm/mach-mvebu
parent413978d118bb7d7b0a8488d97d802f2899cd81ce (diff)
downloadu-boot-imx-8ed43b966ccf7f1153f553dce86de60a6e0e9d9a.zip
u-boot-imx-8ed43b966ccf7f1153f553dce86de60a6e0e9d9a.tar.gz
u-boot-imx-8ed43b966ccf7f1153f553dce86de60a6e0e9d9a.tar.bz2
arm: mvebu: Add SPL SDIO/MMC boot support
This patch adds basic SDIO/MMC booting support to MVEBU SoC's. Since I don't know of a way to test the boot-device upon runtime, this patch hardcodes the spl_boot_device instead. Tested on Marvell DB-88F6820-GP board. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Luka Perkov <luka.perkov@sartura.hr> Cc: Dirk Eibach <eibach@gdsys.de>
Diffstat (limited to 'arch/arm/mach-mvebu')
-rw-r--r--arch/arm/mach-mvebu/spl.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/arch/arm/mach-mvebu/spl.c b/arch/arm/mach-mvebu/spl.c
index e65f6ca..af61ded 100644
--- a/arch/arm/mach-mvebu/spl.c
+++ b/arch/arm/mach-mvebu/spl.c
@@ -14,10 +14,21 @@ DECLARE_GLOBAL_DATA_PTR;
u32 spl_boot_device(void)
{
- /* Right now only booting via SPI NOR flash is supported */
+#if defined(CONFIG_SPL_SPI_FLASH_SUPPORT)
return BOOT_DEVICE_SPI;
+#endif
+#if defined(CONFIG_SPL_MMC_SUPPORT)
+ return BOOT_DEVICE_MMC1;
+#endif
}
+#ifdef CONFIG_SPL_MMC_SUPPORT
+u32 spl_boot_mode(void)
+{
+ return MMCSD_MODE_RAW;
+}
+#endif
+
void board_init_f(ulong dummy)
{
/* Set global data pointer */