Skip to contentSkip to conversation

ARM: omap3: overo: Fix MMC init for SPL

PATCH New anselm.busse at outlook.com 2 participants 2 messages Jul 31, 2019 – Aug 13, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: omap3: overo: Fix MMC init for SPL

From: Anselm Busse <[email protected]>

The SPL for the Overo board does not initialise the MMC. Hence, it cannot load the main boot loader from the SD card susequently. This Patch moves the initialisation code for the MMC so it gets included in the SPL.

---
 board/overo/common.c | 25 +++++++++++++++++++++++++
 board/overo/overo.c  | 14 --------------
 2 files changed, 25 insertions(+), 14 deletions(-)
board/overo/common.c +25 -0
index fc02d66d53..851f55d43c 100644
@@ -38,6 +38,31 @@ int board_init(void)
 	return 0;
 }
 
+#if defined(CONFIG_MMC)
+int board_mmc_init(bd_t *bis)
+{
+	return omap_mmc_init(0, 0, 0, -1, -1);
+}
+#endif
+
+#if defined(CONFIG_MMC)
+void board_mmc_power_init(void)
+{
+	twl4030_power_mmc_init(0);
+}
+#endif
+
+#if defined(CONFIG_SPL_OS_BOOT)
+int spl_start_uboot(void)
+{
+	/* break into full u-boot on 'c' */
+	if (serial_tstc() && serial_getc() == 'c')
+		return 1;
+
+	return 0;
+}
+#endif /* CONFIG_SPL_OS_BOOT */
+
 #define MUX_OVERO() \
  /*SDRC*/\
 	MUX_VAL(CP(SDRC_D0),		(IEN  | PTD | DIS | M0)) /*SDRC_D0*/\
board/overo/overo.c +0 -14
index 8fa41f8155..3d57f945f4 100644
@@ -376,20 +376,6 @@ int board_eth_init(bd_t *bis)
 }
 #endif
 
-#if defined(CONFIG_MMC)
-int board_mmc_init(bd_t *bis)
-{
-	return omap_mmc_init(0, 0, 0, -1, -1);
-}
-#endif
-
-#if defined(CONFIG_MMC)
-void board_mmc_power_init(void)
-{
-	twl4030_power_mmc_init(0);
-}
-#endif
-
 #if defined(CONFIG_USB_EHCI_HCD)
 static struct omap_usbhs_board_data usbhs_bdata = {
 	.port_mode[0] = OMAP_USBHS_PORT_MODE_UNUSED,
Signature · 1 line
2.22.0
#1 lore raw

PATCH 1/1 ARM: omap3: overo: Fix MMC init for SPL

Quoted 3 lines · anselm.busse at outlook.com

From: Anselm Busse <[email protected]>

The SPL for the Overo board does not initialise the MMC. Hence, it cannot load the main boot loader from the SD card susequently. This Patch moves the initialisation code for the MMC so it gets included in the SPL.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190813/5221429c/attachment.sig>