Merge tag 'regulator-v3.13' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie...
[deliverable/linux.git] / arch / arm / mach-exynos / mach-exynos4-dt.c
1 /*
2 * Samsung's EXYNOS4 flattened device tree enabled machine
3 *
4 * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
5 * http://www.samsung.com
6 * Copyright (c) 2010-2011 Linaro Ltd.
7 * www.linaro.org
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
12 */
13
14 #include <linux/of_platform.h>
15 #include <linux/of_fdt.h>
16
17 #include <asm/mach/arch.h>
18 #include <plat/mfc.h>
19
20 #include "common.h"
21
22 static void __init exynos4_dt_machine_init(void)
23 {
24 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
25 }
26
27 static char const *exynos4_dt_compat[] __initdata = {
28 "samsung,exynos4210",
29 "samsung,exynos4212",
30 "samsung,exynos4412",
31 NULL
32 };
33
34 static void __init exynos4_reserve(void)
35 {
36 #ifdef CONFIG_S5P_DEV_MFC
37 struct s5p_mfc_dt_meminfo mfc_mem;
38
39 /* Reserve memory for MFC only if it's available */
40 mfc_mem.compatible = "samsung,mfc-v5";
41 if (of_scan_flat_dt(s5p_fdt_find_mfc_mem, &mfc_mem))
42 s5p_mfc_reserve_mem(mfc_mem.roff, mfc_mem.rsize, mfc_mem.loff,
43 mfc_mem.lsize);
44 #endif
45 }
46 DT_MACHINE_START(EXYNOS4210_DT, "Samsung Exynos4 (Flattened Device Tree)")
47 /* Maintainer: Thomas Abraham <thomas.abraham@linaro.org> */
48 .smp = smp_ops(exynos_smp_ops),
49 .map_io = exynos_init_io,
50 .init_early = exynos_firmware_init,
51 .init_machine = exynos4_dt_machine_init,
52 .init_late = exynos_init_late,
53 .dt_compat = exynos4_dt_compat,
54 .restart = exynos4_restart,
55 .reserve = exynos4_reserve,
56 MACHINE_END
This page took 0.032677 seconds and 5 git commands to generate.