Merge tag 'locks-v3.16-2' of git://git.samba.org/jlayton/linux
[linux/fpc-iii.git] / arch / arm / mach-shmobile / setup-r7s72100.c
blob412e179429cd7d28f35e6603685c4419d4307374
1 /*
2 * r7s72100 processor support
4 * Copyright (C) 2013 Renesas Solutions Corp.
5 * Copyright (C) 2013 Magnus Damm
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.
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.
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
21 #include <linux/irq.h>
22 #include <linux/kernel.h>
23 #include <linux/of_platform.h>
24 #include <linux/sh_timer.h>
25 #include <mach/common.h>
26 #include <mach/irqs.h>
27 #include <mach/r7s72100.h>
28 #include <asm/mach/arch.h>
30 static struct resource mtu2_resources[] __initdata = {
31 DEFINE_RES_MEM(0xfcff0000, 0x400),
32 DEFINE_RES_IRQ_NAMED(gic_iid(139), "tgi0a"),
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)
41 void __init r7s72100_add_dt_devices(void)
43 r7s72100_register_mtu2();
46 void __init r7s72100_init_early(void)
48 shmobile_setup_delay(400, 1, 3); /* Cortex-A9 @ 400MHz */
51 #ifdef CONFIG_USE_OF
52 static const char *r7s72100_boards_compat_dt[] __initdata = {
53 "renesas,r7s72100",
54 NULL,
57 DT_MACHINE_START(R7S72100_DT, "Generic R7S72100 (Flattened Device Tree)")
58 .init_early = r7s72100_init_early,
59 .dt_compat = r7s72100_boards_compat_dt,
60 MACHINE_END
61 #endif /* CONFIG_USE_OF */