ARM: EXYNOS: Add support for secure monitor calls
[deliverable/linux.git] / arch / arm / mach-exynos / mach-exynos4-dt.c
CommitLineData
6b5ab4f4 1/*
3579a582 2 * Samsung's EXYNOS4 flattened device tree enabled machine
6b5ab4f4
TA
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
ee6c7137 14#include <linux/kernel.h>
6b5ab4f4 15#include <linux/of_platform.h>
20901f74 16#include <linux/of_fdt.h>
6b5ab4f4 17#include <linux/serial_core.h>
20901f74 18#include <linux/memblock.h>
9fbf0c85 19#include <linux/clocksource.h>
6b5ab4f4
TA
20
21#include <asm/mach/arch.h>
20901f74 22#include <plat/mfc.h>
35bded8f
KL
23
24#include "common.h"
6b5ab4f4 25
3579a582 26static void __init exynos4_dt_map_io(void)
6b5ab4f4 27{
35bded8f 28 exynos_init_io(NULL, 0);
6b5ab4f4
TA
29}
30
3579a582 31static void __init exynos4_dt_machine_init(void)
6b5ab4f4 32{
ee6c7137 33 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
6b5ab4f4
TA
34}
35
3579a582 36static char const *exynos4_dt_compat[] __initdata = {
6b5ab4f4 37 "samsung,exynos4210",
0f7238a1
TF
38 "samsung,exynos4212",
39 "samsung,exynos4412",
6b5ab4f4
TA
40 NULL
41};
42
20901f74
SK
43static void __init exynos4_reserve(void)
44{
45#ifdef CONFIG_S5P_DEV_MFC
46 struct s5p_mfc_dt_meminfo mfc_mem;
47
48 /* Reserve memory for MFC only if it's available */
49 mfc_mem.compatible = "samsung,mfc-v5";
50 if (of_scan_flat_dt(s5p_fdt_find_mfc_mem, &mfc_mem))
51 s5p_mfc_reserve_mem(mfc_mem.roff, mfc_mem.rsize, mfc_mem.loff,
52 mfc_mem.lsize);
53#endif
54}
6b5ab4f4
TA
55DT_MACHINE_START(EXYNOS4210_DT, "Samsung Exynos4 (Flattened Device Tree)")
56 /* Maintainer: Thomas Abraham <thomas.abraham@linaro.org> */
61ef3c0b 57 .smp = smp_ops(exynos_smp_ops),
6b5ab4f4 58 .init_irq = exynos4_init_irq,
3579a582 59 .map_io = exynos4_dt_map_io,
3579a582 60 .init_machine = exynos4_dt_machine_init,
bb13fabc 61 .init_late = exynos_init_late,
6923ae4b 62 .init_time = exynos_init_time,
3579a582 63 .dt_compat = exynos4_dt_compat,
35bded8f 64 .restart = exynos4_restart,
20901f74 65 .reserve = exynos4_reserve,
6b5ab4f4 66MACHINE_END
This page took 0.075599 seconds and 5 git commands to generate.