2 * Device Tree support for Rockchip SoCs
4 * Copyright (c) 2013 MundoReader S.L.
5 * Author: Heiko Stuebner <heiko@sntech.de>
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; either version 2 of the License, or
10 * (at your option) any later version.
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.
18 #include <linux/kernel.h>
19 #include <linux/init.h>
20 #include <linux/of_platform.h>
21 #include <linux/irqchip.h>
22 #include <asm/mach/arch.h>
23 #include <asm/mach/map.h>
24 #include <asm/hardware/cache-l2x0.h>
28 static void __init rockchip_dt_init(void)
30 rockchip_suspend_init();
31 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
32 platform_device_register_simple("cpufreq-dt", 0, NULL, 0);
35 static const char * const rockchip_board_dt_compat[] = {
44 DT_MACHINE_START(ROCKCHIP_DT, "Rockchip (Device Tree)")
47 .dt_compat = rockchip_board_dt_compat,
48 .init_machine = rockchip_dt_init,