exynos5250: arndale: Add mmc support
[oweals/u-boot.git] / board / samsung / arndale / arndale.c
index 84d8f19c1d8a47beaa3b6d80d52c4edf0b186cf6..052fecdd5b3bb0158f24e9c391ee7607f199384a 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <asm/arch/pinmux.h>
+#include <asm/arch/dwmmc.h>
 #include <asm/arch/power.h>
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -48,6 +49,19 @@ void dram_init_banksize(void)
        }
 }
 
+#ifdef CONFIG_GENERIC_MMC
+int board_mmc_init(bd_t *bis)
+{
+       int ret;
+       /* dwmmc initializattion for available channels */
+       ret = exynos_dwmmc_init(gd->fdt_blob);
+       if (ret)
+               debug("dwmmc init failed\n");
+
+       return ret;
+}
+#endif
+
 static int board_uart_init(void)
 {
        int err = 0, uart_id;