public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/5] arm: mvebu: Add SPL SDIO/MMC boot support
@ 2015-07-20  9:20 Stefan Roese
  2015-07-20  9:20 ` [U-Boot] [PATCH 2/5] kwbimage: Add support for SDIO/MMC boot device selection Stefan Roese
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Stefan Roese @ 2015-07-20  9:20 UTC (permalink / raw)
  To: u-boot

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>
---
 arch/arm/mach-mvebu/spl.c | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

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 */
-- 
2.4.6

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-07-21  8:10 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-20  9:20 [U-Boot] [PATCH 1/5] arm: mvebu: Add SPL SDIO/MMC boot support Stefan Roese
2015-07-20  9:20 ` [U-Boot] [PATCH 2/5] kwbimage: Add support for SDIO/MMC boot device selection Stefan Roese
2015-07-20  9:20 ` [U-Boot] [PATCH 3/5] kwbimage: Rename CONFIG_SYS_SPI_U_BOOT_OFFS to CONFIG_SYS_U_BOOT_OFFS Stefan Roese
2015-07-21  7:37   ` Albert ARIBAUD
2015-07-21  8:10     ` Stefan Roese
2015-07-20  9:20 ` [U-Boot] [PATCH 4/5] spl: spl_mmc: Add option to boot from a MMC partition with offset Stefan Roese
2015-07-20  9:20 ` [U-Boot] [PATCH 5/5] arm: mvebu: db-88f6820-gp: Add SDIO/MMC SPL boot support Stefan Roese
2015-07-20 21:34   ` Luka Perkov
2015-07-21  4:24     ` Stefan Roese
2015-07-21  7:24 ` [U-Boot] [PATCH 1/5] arm: mvebu: Add SPL SDIO/MMC " Albert ARIBAUD
2015-07-21  8:04   ` Stefan Roese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox