2 * marzen board support - Reference DT implementation
4 * Copyright (C) 2011 Renesas Solutions Corp.
5 * Copyright (C) 2011 Magnus Damm
6 * Copyright (C) 2013 Simon Horman
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; version 2 of the License.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 #include <linux/clk/shmobile.h>
23 #include <linux/clocksource.h>
24 #include <linux/of_platform.h>
27 #include <asm/mach/arch.h>
34 static void __init marzen_init_timer(void)
36 r8a7779_clocks_init(r8a7779_read_mode_pins());
37 clocksource_of_init();
40 static void __init marzen_init(void)
42 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
43 r8a7779_init_irq_extpin_dt(1); /* IRQ1 as individual interrupt */
46 static const char *marzen_boards_compat_dt[] __initdata = {
48 "renesas,marzen-reference",
52 DT_MACHINE_START(MARZEN, "marzen")
53 .smp = smp_ops(r8a7779_smp_ops),
54 .map_io = r8a7779_map_io,
55 .init_early = shmobile_init_delay,
56 .init_time = marzen_init_timer,
57 .init_irq = r8a7779_init_irq_dt,
58 .init_machine = marzen_init,
59 .init_late = shmobile_init_late,
60 .dt_compat = marzen_boards_compat_dt,