blob: 054d8d5c8fc1a5b743962e0c0ee6be920e9f981d [file] [log] [blame]
Magnus Damm03393e82013-07-08 15:00:30 +09001/*
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
27static void __init kzm9d_add_standard_devices(void)
28{
Magnus Dammcbc60e72013-07-18 05:31:18 +090029 if (!IS_ENABLED(CONFIG_COMMON_CLK))
30 emev2_clock_init();
Magnus Damm03393e82013-07-08 15:00:30 +090031
32 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
33}
34
35static const char *kzm9d_boards_compat_dt[] __initdata = {
Magnus Damm91f6c562013-10-01 19:33:34 +090036 "renesas,kzm9d",
Magnus Damm03393e82013-07-08 15:00:30 +090037 "renesas,kzm9d-reference",
38 NULL,
39};
40
41DT_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,
48MACHINE_END