diff mbox

[v2,2/2] exynos5250: arndale: Add mmc support

Message ID 1370606666-2657-3-git-send-email-inderpal.singh@linaro.org
State New
Headers show

Commit Message

Inderpal Singh June 7, 2013, 12:04 p.m. UTC
This patch adds mmc support to the arndale board.

Signed-off-by: Inderpal Singh <inderpal.singh@linaro.org>
---
 board/samsung/arndale/arndale.c          |   14 ++++++++++++++
 board/samsung/dts/exynos5250-arndale.dts |   18 ++++++++++++++++++
 2 files changed, 32 insertions(+)
diff mbox

Patch

diff --git a/board/samsung/arndale/arndale.c b/board/samsung/arndale/arndale.c
index 627583b..7f8a568 100644
--- a/board/samsung/arndale/arndale.c
+++ b/board/samsung/arndale/arndale.c
@@ -22,6 +22,7 @@ 
 
 #include <common.h>
 #include <asm/arch/pinmux.h>
+#include <asm/arch/dwmmc.h>
 #include <asm/arch/power.h>
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -64,6 +65,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, uart_id, ret = 0;
diff --git a/board/samsung/dts/exynos5250-arndale.dts b/board/samsung/dts/exynos5250-arndale.dts
index b6ca4d9..9b4d6b2 100644
--- a/board/samsung/dts/exynos5250-arndale.dts
+++ b/board/samsung/dts/exynos5250-arndale.dts
@@ -15,4 +15,22 @@ 
 / {
 	model = "SAMSUNG Arndale board based on EXYNOS5250";
 	compatible = "samsung,arndale", "samsung,exynos5250";
+
+	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";
+	};
 };