exynos5250: arndale: Add mmc support
authorInderpal Singh <inderpal.singh@linaro.org>
Wed, 21 Aug 2013 05:08:57 +0000 (10:38 +0530)
committerMinkyu Kang <mk7.kang@samsung.com>
Fri, 30 Aug 2013 03:13:58 +0000 (12:13 +0900)
This patch adds mmc support to the arndale board.

Signed-off-by: Inderpal Singh <inderpal.singh@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/arndale/arndale.c
board/samsung/dts/exynos5250-arndale.dts

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;
index d3c05273dbb15aa145f152b5620231f3b8b6e967..c700e455365649f4952c80d9a55ee2b2c07187bc 100644 (file)
                serial0 = "/serial@12C20000";
                console = "/serial@12C20000";
        };
+
+       mmc@12200000 {
+               samsung,bus-width = <8>;
+               samsung,timing = <1 3 3>;
+       };
+
+       mmc@12210000 {
+               status = "disabled";
+       };
+
+       mmc@12220000 {
+               samsung,bus-width = <4>;
+               samsung,timing = <1 2 3>;
+       };
+
+       mmc@12230000 {
+               status = "disabled";
+       };
 };