ARM: shmobile: Move most of irqs.h, keep some for pinctl
[deliverable/linux.git] / arch / arm / mach-shmobile / setup-r7s72100.c
CommitLineData
e3da5b36
MD
1/*
2 * r7s72100 processor support
3 *
4 * Copyright (C) 2013 Renesas Solutions Corp.
5 * Copyright (C) 2013 Magnus Damm
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2 of the License.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21#include <linux/irq.h>
22#include <linux/kernel.h>
23#include <linux/of_platform.h>
d18e0611 24#include <linux/sh_timer.h>
e3da5b36
MD
25#include <mach/common.h>
26#include <mach/r7s72100.h>
27#include <asm/mach/arch.h>
b6bab126 28#include "irqs.h"
e3da5b36 29
c17fcfbc
LP
30static struct resource mtu2_resources[] __initdata = {
31 DEFINE_RES_MEM(0xfcff0000, 0x400),
32 DEFINE_RES_IRQ_NAMED(gic_iid(139), "tgi0a"),
d18e0611
MD
33};
34
c17fcfbc
LP
35#define r7s72100_register_mtu2() \
36 platform_device_register_resndata(&platform_bus, "sh-mtu2", \
37 -1, mtu2_resources, \
38 ARRAY_SIZE(mtu2_resources), \
39 NULL, 0)
d18e0611 40
f6ca6f11
MD
41void __init r7s72100_add_dt_devices(void)
42{
c17fcfbc 43 r7s72100_register_mtu2();
f6ca6f11
MD
44}
45
e3da5b36
MD
46void __init r7s72100_init_early(void)
47{
48 shmobile_setup_delay(400, 1, 3); /* Cortex-A9 @ 400MHz */
49}
50
51#ifdef CONFIG_USE_OF
52static const char *r7s72100_boards_compat_dt[] __initdata = {
53 "renesas,r7s72100",
54 NULL,
55};
56
57DT_MACHINE_START(R7S72100_DT, "Generic R7S72100 (Flattened Device Tree)")
58 .init_early = r7s72100_init_early,
59 .dt_compat = r7s72100_boards_compat_dt,
60MACHINE_END
61#endif /* CONFIG_USE_OF */
This page took 0.059256 seconds and 5 git commands to generate.