]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/ti/sdp3430/sdp.c
ARM:OMAP+:MMC: Add parameters to MMC init
[karo-tx-uboot.git] / board / ti / sdp3430 / sdp.c
index 0d8e20dc7cf3b6f30c79f5399881a0ffc6a538b0..9a1c0121452e79c910f039399589815181d112b9 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, 0, 0);
+       return 0;
+}
+#endif