summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2014-03-21 01:52:56 +0900
committerKukjin Kim <kgene.kim@samsung.com>2014-03-21 02:00:09 +0900
commit7ed30015007c32c006783526dc54a2a88bd5e13b (patch)
treed78a3801d356829d7840c285c4645953b89563ed
parent8b3e8bbd132279be544a6f4dc22c22d244c98c23 (diff)
downloadop-kernel-dev-7ed30015007c32c006783526dc54a2a88bd5e13b.zip
op-kernel-dev-7ed30015007c32c006783526dc54a2a88bd5e13b.tar.gz
ARM: EXYNOS: Add support to reserve memory for MFC-v7
Reserve memory for MFC-v7 IP. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
-rw-r--r--arch/arm/mach-exynos/mach-exynos5-dt.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c
index 9586439..9a8a798 100644
--- a/arch/arm/mach-exynos/mach-exynos5-dt.c
+++ b/arch/arm/mach-exynos/mach-exynos5-dt.c
@@ -59,7 +59,15 @@ static char const *exynos5_dt_compat[] __initdata = {
static void __init exynos5_reserve(void)
{
#ifdef CONFIG_S5P_DEV_MFC
- of_scan_flat_dt(s5p_fdt_alloc_mfc_mem, "samsung,mfc-v6");
+ int i;
+ char *mfc_mem[] = {
+ "samsung,mfc-v6",
+ "samsung,mfc-v7",
+ };
+
+ for (i = 0; i < ARRAY_SIZE(mfc_mem); i++)
+ if (of_scan_flat_dt(s5p_fdt_alloc_mfc_mem, mfc_mem[i]))
+ break;
#endif
}
OpenPOWER on IntegriCloud