@@ -60,13 +60,17 @@ static char const *exynos5_dt_compat[] __initdata = {
static void __init exynos5_reserve(void)
{
#ifdef CONFIG_S5P_DEV_MFC
- struct s5p_mfc_dt_meminfo mfc_mem;
+ int i;
+ struct s5p_mfc_dt_meminfo mfc_mem[] = {
+ {.compatible = "samsung,mfc-v6"},
+ {.compatible = "samsung,mfc-v7"},
+ };
/* Reserve memory for MFC only if it's available */
- mfc_mem.compatible = "samsung,mfc-v6";
- if (of_scan_flat_dt(s5p_fdt_find_mfc_mem, &mfc_mem))
- s5p_mfc_reserve_mem(mfc_mem.roff, mfc_mem.rsize, mfc_mem.loff,
- mfc_mem.lsize);
+ for (i = 0; i < ARRAY_SIZE(mfc_mem); i++)
+ if (of_scan_flat_dt(s5p_fdt_find_mfc_mem, &mfc_mem[i]))
+ s5p_mfc_reserve_mem(mfc_mem[i].roff, mfc_mem[i].rsize,
+ mfc_mem[i].loff, mfc_mem[i].lsize);
#endif
}
The patch updates the exynos5 memory reservation to reserve memory for mfc-v7 also in addition to v6. Signed-off-by: Arun Kumar K <arun.kk@samsung.com> --- arch/arm/mach-exynos/mach-exynos5-dt.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)