blob: d211d6fa0d985d643743c75e224ba20eb1b612bf [file] [log] [blame]
Heiko Stuebnerd63dc0512013-06-02 23:09:41 +02001/*
2 * Device Tree support for Rockchip SoCs
3 *
4 * Copyright (c) 2013 MundoReader S.L.
5 * Author: Heiko Stuebner <heiko@sntech.de>
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; either version 2 of the License, or
10 * (at your option) any later version.
11 *
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.
16 */
17
18#include <linux/kernel.h>
19#include <linux/init.h>
20#include <linux/of_platform.h>
21#include <linux/irqchip.h>
Heiko Stuebnerd63dc0512013-06-02 23:09:41 +020022#include <asm/mach/arch.h>
23#include <asm/mach/map.h>
24#include <asm/hardware/cache-l2x0.h>
Heiko Stuebnera7a2b312013-06-17 22:29:23 +020025#include "core.h"
Heiko Stuebnerd63dc0512013-06-02 23:09:41 +020026
Heiko Stuebnerd63dc0512013-06-02 23:09:41 +020027static void __init rockchip_dt_init(void)
28{
29 l2x0_of_init(0, ~0UL);
30 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
31}
32
33static const char * const rockchip_board_dt_compat[] = {
34 "rockchip,rk2928",
35 "rockchip,rk3066a",
36 "rockchip,rk3066b",
37 "rockchip,rk3188",
38 NULL,
39};
40
41DT_MACHINE_START(ROCKCHIP_DT, "Rockchip Cortex-A9 (Device Tree)")
Heiko Stuebnera7a2b312013-06-17 22:29:23 +020042 .smp = smp_ops(rockchip_smp_ops),
Heiko Stuebnerd63dc0512013-06-02 23:09:41 +020043 .init_machine = rockchip_dt_init,
Heiko Stuebnerd63dc0512013-06-02 23:09:41 +020044 .dt_compat = rockchip_board_dt_compat,
45MACHINE_END