Arnd Bergmann | 48be9ac | 2013-02-28 18:19:16 +0100 | [diff] [blame] | 1 | /* |
Sebastian Hesselbarth | 00e8ec2 | 2014-03-01 09:39:38 +0100 | [diff] [blame] | 2 | * arch/arm/mach-mvebu/dove.c |
Arnd Bergmann | 48be9ac | 2013-02-28 18:19:16 +0100 | [diff] [blame] | 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> |
Sebastian Hesselbarth | 00e8ec2 | 2014-03-01 09:39:38 +0100 | [diff] [blame] | 12 | #include <linux/mbus.h> |
Arnd Bergmann | 48be9ac | 2013-02-28 18:19:16 +0100 | [diff] [blame] | 13 | #include <linux/of.h> |
Russell King | 44e259a | 2015-07-15 19:59:36 +0100 | [diff] [blame] | 14 | #include <linux/soc/dove/pmu.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> |
Arnd Bergmann | 48be9ac | 2013-02-28 18:19:16 +0100 | [diff] [blame] | 17 | #include "common.h" |
| 18 | |
Sebastian Hesselbarth | 00e8ec2 | 2014-03-01 09:39:38 +0100 | [diff] [blame] | 19 | static void __init dove_init(void) |
Arnd Bergmann | 48be9ac | 2013-02-28 18:19:16 +0100 | [diff] [blame] | 20 | { |
| 21 | pr_info("Dove 88AP510 SoC\n"); |
| 22 | |
| 23 | #ifdef CONFIG_CACHE_TAUROS2 |
| 24 | tauros2_init(0); |
| 25 | #endif |
Thomas Petazzoni | 5686a1e | 2014-04-14 15:47:01 +0200 | [diff] [blame] | 26 | BUG_ON(mvebu_mbus_dt_init(false)); |
Russell King | 44e259a | 2015-07-15 19:59:36 +0100 | [diff] [blame] | 27 | dove_init_pmu(); |
Arnd Bergmann | 48be9ac | 2013-02-28 18:19:16 +0100 | [diff] [blame] | 28 | } |
| 29 | |
Thomas Petazzoni | bc2d7a5 | 2015-03-03 15:40:56 +0100 | [diff] [blame] | 30 | static const char * const dove_dt_compat[] __initconst = { |
Arnd Bergmann | 48be9ac | 2013-02-28 18:19:16 +0100 | [diff] [blame] | 31 | "marvell,dove", |
| 32 | NULL |
| 33 | }; |
| 34 | |
Sebastian Hesselbarth | 00e8ec2 | 2014-03-01 09:39:38 +0100 | [diff] [blame] | 35 | DT_MACHINE_START(DOVE_DT, "Marvell Dove") |
| 36 | .init_machine = dove_init, |
| 37 | .restart = mvebu_restart, |
| 38 | .dt_compat = dove_dt_compat, |
Arnd Bergmann | 48be9ac | 2013-02-28 18:19:16 +0100 | [diff] [blame] | 39 | MACHINE_END |