]> git.sur5r.net Git - u-boot/blobdiff - board/ti/sdp3430/sdp.c
Merge branch 'master' of git://git.denx.de/u-boot-coldfire
[u-boot] / board / ti / sdp3430 / sdp.c
index 0d8e20dc7cf3b6f30c79f5399881a0ffc6a538b0..d73f5018193ffa158ee9c88cb470eae823d73d0d 100644 (file)
 #include <netdev.h>
 #include <twl4030.h>
 #include <asm/io.h>
+#include <asm/arch/mmc_host_def.h>
 #include <asm/arch/mux.h>
 #include <asm/arch/mem.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/mach-types.h>
 #include "sdp.h"
 
+DECLARE_GLOBAL_DATA_PTR;
+
 const omap3_sysinfo sysinfo = {
        DDR_DISCRETE,
        "OMAP3 SDP3430 board",
@@ -101,8 +104,6 @@ extern struct gpmc *gpmc_cfg;
  */
 int board_init(void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        gpmc_init(); /* in SRAM or SDRAM, finish GPMC */
        /* TODO: Dynamically pop out CS mapping and program accordingly */
        /* Configure devices for default ON ON ON settings */
@@ -204,3 +205,11 @@ void set_muxconf_regs(void)
        /* platform specific muxes */
        MUX_SDP3430();
 }
+
+#ifdef CONFIG_GENERIC_MMC
+int board_mmc_init(bd_t *bis)
+{
+       omap_mmc_init(0);
+       return 0;
+}
+#endif