2 * Lager board support - Reference DT implementation
4 * Copyright (C) 2013 Renesas Solutions Corp.
5 * Copyright (C) 2013 Simon Horman
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/init.h>
22 #include <linux/of_platform.h>
23 #include <mach/r8a7790.h>
24 #include <asm/mach/arch.h>
26 static void __init
lager_add_standard_devices(void)
28 /* clocks are setup late during boot in the case of DT */
31 r8a7790_add_dt_devices();
32 of_platform_populate(NULL
, of_default_bus_match_table
, NULL
, NULL
);
35 static const char *lager_boards_compat_dt
[] __initdata
= {
36 "renesas,lager-reference",
40 DT_MACHINE_START(LAGER_DT
, "lager")
41 .init_early
= r8a7790_init_delay
,
42 .init_machine
= lager_add_standard_devices
,
43 .init_time
= r8a7790_timer_init
,
44 .dt_compat
= lager_boards_compat_dt
,