Arnd Bergmann | 48be9ac | 2013-02-28 18:19:16 +0100 | [diff] [blame] | 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> |
Arnd Bergmann | 48be9ac | 2013-02-28 18:19:16 +0100 | [diff] [blame] | 13 | #include <linux/of.h> |
| 14 | #include <linux/of_platform.h> |
Arnd Bergmann | 48be9ac | 2013-02-28 18:19:16 +0100 | [diff] [blame] | 15 | #include <asm/hardware/cache-tauros2.h> |
| 16 | #include <asm/mach/arch.h> |
Sebastian Hesselbarth | f07d73e | 2013-07-02 13:03:40 +0200 | [diff] [blame] | 17 | #include <mach/dove.h> |
Arnd Bergmann | 48be9ac | 2013-02-28 18:19:16 +0100 | [diff] [blame] | 18 | #include <mach/pm.h> |
| 19 | #include <plat/common.h> |
Arnd Bergmann | 48be9ac | 2013-02-28 18:19:16 +0100 | [diff] [blame] | 20 | #include "common.h" |
| 21 | |
Arnd Bergmann | 48be9ac | 2013-02-28 18:19:16 +0100 | [diff] [blame] | 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 |
Sebastian Hesselbarth | e5901b5 | 2013-07-29 14:31:54 +0200 | [diff] [blame] | 29 | BUG_ON(mvebu_mbus_dt_init()); |
Arnd Bergmann | 48be9ac | 2013-02-28 18:19:16 +0100 | [diff] [blame] | 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, |
Arnd Bergmann | 48be9ac | 2013-02-28 18:19:16 +0100 | [diff] [blame] | 40 | .init_machine = dove_dt_init, |
| 41 | .restart = dove_restart, |
| 42 | .dt_compat = dove_dt_board_compat, |
| 43 | MACHINE_END |