Merge tag 'ntb-3.13' of git://github.com/jonmason/ntb
[linux-drm-fsl-dcu.git] / arch / arm / mach-dove / board-dt.c
1 /*
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>
13 #include <linux/of.h>
14 #include <linux/of_platform.h>
15 #include <asm/hardware/cache-tauros2.h>
16 #include <asm/mach/arch.h>
17 #include <mach/dove.h>
18 #include <mach/pm.h>
19 #include <plat/common.h>
20 #include "common.h"
21
22 static 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
29         BUG_ON(mvebu_mbus_dt_init());
30         of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
31 }
32
33 static const char * const dove_dt_board_compat[] = {
34         "marvell,dove",
35         NULL
36 };
37
38 DT_MACHINE_START(DOVE_DT, "Marvell Dove (Flattened Device Tree)")
39         .map_io         = dove_map_io,
40         .init_machine   = dove_dt_init,
41         .restart        = dove_restart,
42         .dt_compat      = dove_dt_board_compat,
43 MACHINE_END