
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 | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-)
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..af9ff08 100644 --- a/include/configs/omap4_panda.h +++ b/include/configs/omap4_panda.h @@ -33,6 +33,9 @@
#include <configs/ti_omap4_common.h>
+/* MMCSD FS mode is preferred */ +#undef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR + /* GPIO */
/* ENV related config options */