diff mbox

[U-Boot,v2,2/3] panda: Initialize MMC power from TWL6030 in SPL

Message ID 20160824180442.11598-2-contact@paulk.fr
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Paul Kocialkowski Aug. 24, 2016, 6:04 p.m. UTC
This adds support for initializing MMC power from TWL6030 in SPL, which
is required when the bootrom didn't power the MMC device yet and U-Boot
is to be loaded from MMC (e.g. after setting boot mode from the SYS_BOOT
pins in peripheral boot).

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
---
 board/ti/panda/panda.c        | 2 +-
 include/configs/omap4_panda.h | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

Comments

Tom Rini Aug. 26, 2016, 9:27 p.m. UTC | #1
On Wed, Aug 24, 2016 at 08:04:41PM +0200, Paul Kocialkowski wrote:

> This adds support for initializing MMC power from TWL6030 in SPL, which
> is required when the bootrom didn't power the MMC device yet and U-Boot
> is to be loaded from MMC (e.g. after setting boot mode from the SYS_BOOT
> pins in peripheral boot).
> 
> Signed-off-by: Paul Kocialkowski <contact@paulk.fr>

Reviewed-by: Tom Rini <trini@konsulko.com>
diff mbox

Patch

diff --git a/board/ti/panda/panda.c b/board/ti/panda/panda.c
index 13b5daf..ebab4e7 100644
--- a/board/ti/panda/panda.c
+++ b/board/ti/panda/panda.c
@@ -292,12 +292,12 @@  int board_mmc_init(bd_t *bis)
 {
 	return omap_mmc_init(0, 0, 0, -1, -1);
 }
+#endif
 
 void board_mmc_power_init(void)
 {
 	twl6030_power_mmc_init(0);
 }
-#endif
 
 #ifdef CONFIG_USB_EHCI
 
diff --git a/include/configs/omap4_panda.h b/include/configs/omap4_panda.h
index ffa22c3..41991e0 100644
--- a/include/configs/omap4_panda.h
+++ b/include/configs/omap4_panda.h
@@ -33,6 +33,8 @@ 
 
 #include <configs/ti_omap4_common.h>
 
+#define CONFIG_SPL_ABORT_ON_RAW_IMAGE
+
 /* GPIO */
 
 /* ENV related config options */