Skip to contentSkip to conversation

ARM: EXYNOS: Add support to reserve memory for MFC-v7

PATCH New Sachin Kamat 2 participants 2 messages Mar 17, 2014 – Mar 20, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: EXYNOS: Add support to reserve memory for MFC-v7

Reserve memory for MFC-v7 IP.

---
Based on top of Tushar's patch:
[PATCH V2] ARM: SAMSUNG: Reorganize calls to reserve memory for MFC
http://www.spinics.net/lists/linux-samsung-soc/msg25501.html

---
 arch/arm/mach-exynos/mach-exynos5-dt.c |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
arch/arm/mach-exynos/mach-exynos5-dt.c +9 -1
index 9586439b2d0e..9a8a798d2ad0 100644
@@ -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
 }
 
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 ARM: EXYNOS: Add support to reserve memory for MFC-v7

Quoted 8 lines · Sachin Kamat

Reserve memory for MFC-v7 IP.

---
Based on top of Tushar's patch:
[PATCH V2] ARM: SAMSUNG: Reorganize calls to reserve memory for MFC
http://www.spinics.net/lists/linux-samsung-soc/msg25501.html

Review

Quoted 5 lines
---
 arch/arm/mach-exynos/mach-exynos5-dt.c |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

b/arch/arm/mach-exynos/mach-

Quoted 22 lines

exynos5-dt.c
index 9586439b2d0e..9a8a798d2ad0 100644

arch/arm/mach-exynos/mach-exynos5-dt.c +9 -2
@@ -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
 }
 
--
Quoted 1 line

1.7.9.5

Looks OK, will apply.

Thanks,
Kukjin