blob: c83c076578dd73b430c9b338faf9ce685d8f39a0 [file] [log] [blame]
Heiko Stuebner35aca362013-05-21 01:06:04 +09001/*
2 * Samsung's S3C2416 flattened device tree enabled machine
3 *
4 * Copyright (c) 2012 Heiko Stuebner <heiko@sntech.de>
5 *
6 * based on mach-exynos/mach-exynos4-dt.c
7 *
8 * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
9 * http://www.samsung.com
10 * Copyright (c) 2010-2011 Linaro Ltd.
11 * www.linaro.org
12 *
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License version 2 as
15 * published by the Free Software Foundation.
16*/
17
18#include <linux/clocksource.h>
19#include <linux/irqchip.h>
Tushar Behera334a1c72014-02-14 10:32:45 +090020#include <linux/serial_s3c.h>
Heiko Stuebner35aca362013-05-21 01:06:04 +090021
22#include <asm/mach/arch.h>
23#include <mach/map.h>
24
25#include <plat/cpu.h>
26#include <plat/pm.h>
Heiko Stuebner35aca362013-05-21 01:06:04 +090027
28#include "common.h"
29
Heiko Stuebner35aca362013-05-21 01:06:04 +090030static void __init s3c2416_dt_map_io(void)
31{
32 s3c24xx_init_io(NULL, 0);
Heiko Stuebner35aca362013-05-21 01:06:04 +090033}
34
35static void __init s3c2416_dt_machine_init(void)
36{
Heiko Stuebner35aca362013-05-21 01:06:04 +090037 s3c_pm_init();
38}
39
Nicolas Pitre19c233b2015-07-27 18:27:52 -040040static const char *const s3c2416_dt_compat[] __initconst = {
Heiko Stuebner35aca362013-05-21 01:06:04 +090041 "samsung,s3c2416",
42 "samsung,s3c2450",
43 NULL
44};
45
46DT_MACHINE_START(S3C2416_DT, "Samsung S3C2416 (Flattened Device Tree)")
47 /* Maintainer: Heiko Stuebner <heiko@sntech.de> */
48 .dt_compat = s3c2416_dt_compat,
49 .map_io = s3c2416_dt_map_io,
50 .init_irq = irqchip_init,
51 .init_machine = s3c2416_dt_machine_init,
Heiko Stuebner35aca362013-05-21 01:06:04 +090052MACHINE_END