Commit | Line | Data |
---|---|---|
03393e8f MD |
1 | /* |
2 | * kzm9d board support - Reference DT implementation | |
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/init.h> | |
22 | #include <linux/of_platform.h> | |
23 | #include <mach/emev2.h> | |
24 | #include <mach/common.h> | |
25 | #include <asm/mach/arch.h> | |
26 | ||
27 | static void __init kzm9d_add_standard_devices(void) | |
28 | { | |
cbc60e7c MD |
29 | if (!IS_ENABLED(CONFIG_COMMON_CLK)) |
30 | emev2_clock_init(); | |
03393e8f MD |
31 | |
32 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | |
33 | } | |
34 | ||
35 | static const char *kzm9d_boards_compat_dt[] __initdata = { | |
91f6c561 | 36 | "renesas,kzm9d", |
03393e8f MD |
37 | "renesas,kzm9d-reference", |
38 | NULL, | |
39 | }; | |
40 | ||
41 | DT_MACHINE_START(KZM9D_DT, "kzm9d") | |
42 | .smp = smp_ops(emev2_smp_ops), | |
43 | .map_io = emev2_map_io, | |
44 | .init_early = emev2_init_delay, | |
45 | .init_machine = kzm9d_add_standard_devices, | |
46 | .init_late = shmobile_init_late, | |
47 | .dt_compat = kzm9d_boards_compat_dt, | |
48 | MACHINE_END |