2 * Samsung's EXYNOS4 flattened device tree enabled machine
4 * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
5 * http://www.samsung.com
6 * Copyright (c) 2010-2011 Linaro Ltd.
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.
14 #include <linux/of_platform.h>
15 #include <linux/of_fdt.h>
17 #include <asm/mach/arch.h>
22 static void __init
exynos4_dt_machine_init(void)
24 exynos_cpuidle_init();
25 exynos_cpufreq_init();
27 of_platform_populate(NULL
, of_default_bus_match_table
, NULL
, NULL
);
30 static char const *exynos4_dt_compat
[] __initdata
= {
37 static void __init
exynos4_reserve(void)
39 #ifdef CONFIG_S5P_DEV_MFC
40 struct s5p_mfc_dt_meminfo mfc_mem
;
42 /* Reserve memory for MFC only if it's available */
43 mfc_mem
.compatible
= "samsung,mfc-v5";
44 if (of_scan_flat_dt(s5p_fdt_find_mfc_mem
, &mfc_mem
))
45 s5p_mfc_reserve_mem(mfc_mem
.roff
, mfc_mem
.rsize
, mfc_mem
.loff
,
49 DT_MACHINE_START(EXYNOS4210_DT
, "Samsung Exynos4 (Flattened Device Tree)")
50 /* Maintainer: Thomas Abraham <thomas.abraham@linaro.org> */
51 .smp
= smp_ops(exynos_smp_ops
),
52 .map_io
= exynos_init_io
,
53 .init_early
= exynos_firmware_init
,
54 .init_machine
= exynos4_dt_machine_init
,
55 .init_late
= exynos_init_late
,
56 .dt_compat
= exynos4_dt_compat
,
57 .restart
= exynos4_restart
,
58 .reserve
= exynos4_reserve
,