blob: 49fa9abd09daec9097c81d58d2633feccd8ec6f4 [file] [log] [blame]
Arnd Bergmann48be9ac2013-02-28 18:19:16 +01001/*
2 * arch/arm/mach-dove/board-dt.c
3 *
4 * Marvell Dove 88AP510 System On Chip FDT Board
5 *
6 * This file is licensed under the terms of the GNU General Public
7 * License version 2. This program is licensed "as is" without any
8 * warranty of any kind, whether express or implied.
9 */
10
11#include <linux/init.h>
12#include <linux/clk-provider.h>
Arnd Bergmann48be9ac2013-02-28 18:19:16 +010013#include <linux/of.h>
14#include <linux/of_platform.h>
Arnd Bergmann48be9ac2013-02-28 18:19:16 +010015#include <asm/hardware/cache-tauros2.h>
16#include <asm/mach/arch.h>
Sebastian Hesselbarthf07d73e2013-07-02 13:03:40 +020017#include <mach/dove.h>
Arnd Bergmann48be9ac2013-02-28 18:19:16 +010018#include <mach/pm.h>
19#include <plat/common.h>
Arnd Bergmann48be9ac2013-02-28 18:19:16 +010020#include "common.h"
21
Arnd Bergmann48be9ac2013-02-28 18:19:16 +010022static void __init dove_dt_init(void)
23{
24 pr_info("Dove 88AP510 SoC\n");
25
26#ifdef CONFIG_CACHE_TAUROS2
27 tauros2_init(0);
28#endif
Sebastian Hesselbarthe5901b52013-07-29 14:31:54 +020029 BUG_ON(mvebu_mbus_dt_init());
Arnd Bergmann48be9ac2013-02-28 18:19:16 +010030 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
31}
32
33static const char * const dove_dt_board_compat[] = {
34 "marvell,dove",
35 NULL
36};
37
38DT_MACHINE_START(DOVE_DT, "Marvell Dove (Flattened Device Tree)")
39 .map_io = dove_map_io,
Arnd Bergmann48be9ac2013-02-28 18:19:16 +010040 .init_machine = dove_dt_init,
41 .restart = dove_restart,
42 .dt_compat = dove_dt_board_compat,
43MACHINE_END