|
@@ -17,6 +17,7 @@
|
|
|
#include <asm/arch/mux.h>
|
|
|
#include <asm/arch/sys_proto.h>
|
|
|
#include <asm/gpio.h>
|
|
|
+#include <asm/omap_mmc.h>
|
|
|
#include <asm/mach-types.h>
|
|
|
|
|
|
DECLARE_GLOBAL_DATA_PTR;
|
|
@@ -38,6 +39,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*/\
|