diff options
Diffstat (limited to 'arch/arm/mach-exynos/mach-exynos4-dt.c')
-rw-r--r-- | arch/arm/mach-exynos/mach-exynos4-dt.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/mach-exynos4-dt.c b/arch/arm/mach-exynos/mach-exynos4-dt.c index 3358088c822a..fad268f8548c 100644 --- a/arch/arm/mach-exynos/mach-exynos4-dt.c +++ b/arch/arm/mach-exynos/mach-exynos4-dt.c | |||
@@ -12,13 +12,16 @@ | |||
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <linux/of_platform.h> | 14 | #include <linux/of_platform.h> |
15 | #include <linux/of_fdt.h> | ||
15 | #include <linux/serial_core.h> | 16 | #include <linux/serial_core.h> |
17 | #include <linux/memblock.h> | ||
16 | 18 | ||
17 | #include <asm/mach/arch.h> | 19 | #include <asm/mach/arch.h> |
18 | #include <mach/map.h> | 20 | #include <mach/map.h> |
19 | 21 | ||
20 | #include <plat/cpu.h> | 22 | #include <plat/cpu.h> |
21 | #include <plat/regs-serial.h> | 23 | #include <plat/regs-serial.h> |
24 | #include <plat/mfc.h> | ||
22 | 25 | ||
23 | #include "common.h" | 26 | #include "common.h" |
24 | 27 | ||
@@ -113,6 +116,7 @@ static const struct of_dev_auxdata exynos4_auxdata_lookup[] __initconst = { | |||
113 | "exynos-sysmmu.14", NULL), /* FIMC-LITE0(4x12) */ | 116 | "exynos-sysmmu.14", NULL), /* FIMC-LITE0(4x12) */ |
114 | OF_DEV_AUXDATA("samsung,exynos-sysmmu", 0x123C0000, | 117 | OF_DEV_AUXDATA("samsung,exynos-sysmmu", 0x123C0000, |
115 | "exynos-sysmmu.15", NULL), /* FIMC-LITE1(4x12) */ | 118 | "exynos-sysmmu.15", NULL), /* FIMC-LITE1(4x12) */ |
119 | OF_DEV_AUXDATA("samsung,mfc-v5", 0x13400000, "s5p-mfc", NULL), | ||
116 | {}, | 120 | {}, |
117 | }; | 121 | }; |
118 | 122 | ||
@@ -135,6 +139,18 @@ static char const *exynos4_dt_compat[] __initdata = { | |||
135 | NULL | 139 | NULL |
136 | }; | 140 | }; |
137 | 141 | ||
142 | static void __init exynos4_reserve(void) | ||
143 | { | ||
144 | #ifdef CONFIG_S5P_DEV_MFC | ||
145 | struct s5p_mfc_dt_meminfo mfc_mem; | ||
146 | |||
147 | /* Reserve memory for MFC only if it's available */ | ||
148 | mfc_mem.compatible = "samsung,mfc-v5"; | ||
149 | if (of_scan_flat_dt(s5p_fdt_find_mfc_mem, &mfc_mem)) | ||
150 | s5p_mfc_reserve_mem(mfc_mem.roff, mfc_mem.rsize, mfc_mem.loff, | ||
151 | mfc_mem.lsize); | ||
152 | #endif | ||
153 | } | ||
138 | DT_MACHINE_START(EXYNOS4210_DT, "Samsung Exynos4 (Flattened Device Tree)") | 154 | DT_MACHINE_START(EXYNOS4210_DT, "Samsung Exynos4 (Flattened Device Tree)") |
139 | /* Maintainer: Thomas Abraham <thomas.abraham@linaro.org> */ | 155 | /* Maintainer: Thomas Abraham <thomas.abraham@linaro.org> */ |
140 | .smp = smp_ops(exynos_smp_ops), | 156 | .smp = smp_ops(exynos_smp_ops), |
@@ -145,4 +161,5 @@ DT_MACHINE_START(EXYNOS4210_DT, "Samsung Exynos4 (Flattened Device Tree)") | |||
145 | .init_time = exynos4_timer_init, | 161 | .init_time = exynos4_timer_init, |
146 | .dt_compat = exynos4_dt_compat, | 162 | .dt_compat = exynos4_dt_compat, |
147 | .restart = exynos4_restart, | 163 | .restart = exynos4_restart, |
164 | .reserve = exynos4_reserve, | ||
148 | MACHINE_END | 165 | MACHINE_END |