Merge remote-tracking branches 'asoc/fix/atmel', 'asoc/fix/fsl', 'asoc/fix/tegra...
[linux-drm-fsl-dcu.git] / arch / arm / mach-shmobile / board-lager-reference.c
1 /*
2  * Lager board support - Reference DT implementation
3  *
4  * Copyright (C) 2013  Renesas Solutions Corp.
5  * Copyright (C) 2013  Simon Horman
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/init.h>
22 #include <linux/of_platform.h>
23 #include <mach/r8a7790.h>
24 #include <asm/mach/arch.h>
25
26 static void __init lager_add_standard_devices(void)
27 {
28         /* clocks are setup late during boot in the case of DT */
29         r8a7790_clock_init();
30
31         r8a7790_add_dt_devices();
32         of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
33 }
34
35 static const char *lager_boards_compat_dt[] __initdata = {
36         "renesas,lager-reference",
37         NULL,
38 };
39
40 DT_MACHINE_START(LAGER_DT, "lager")
41         .smp            = smp_ops(r8a7790_smp_ops),
42         .init_early     = r8a7790_init_early,
43         .init_time      = rcar_gen2_timer_init,
44         .init_machine   = lager_add_standard_devices,
45         .dt_compat      = lager_boards_compat_dt,
46 MACHINE_END