ARM: EXYNOS: Add support to reserve memory for MFC-v7
Subsystems (3)
PATCH 1/1 ARM: EXYNOS: Add support to reserve memory for MFC-v7
Reserve memory for MFC-v7 IP.
Signed-off-by Sachin Kamat <[email protected]>
---
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
@@ -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
PATCH 1/1 ARM: EXYNOS: Add support to reserve memory for MFC-v7
Quoted 8 lines · Sachin Kamat
Reserve memory for MFC-v7 IP.
Signed-off-by Sachin Kamat <[email protected]>---
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
index9586439b2d0e..9a8a798d2ad0100644arch/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