blob: d076c5771adc2f0e17f895370e59ac0d747a08c7 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001/*
2 * arch/arm/mach-mvebu/dove.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/mbus.h>
13#include <linux/of.h>
14#include <linux/soc/dove/pmu.h>
15#include <asm/hardware/cache-tauros2.h>
16#include <asm/mach/arch.h>
17#include "common.h"
18
19static void __init dove_init(void)
20{
21 pr_info("Dove 88AP510 SoC\n");
22
23#ifdef CONFIG_CACHE_TAUROS2
24 tauros2_init(0);
25#endif
26 BUG_ON(mvebu_mbus_dt_init(false));
27 dove_init_pmu();
28}
29
30static const char * const dove_dt_compat[] __initconst = {
31 "marvell,dove",
32 NULL
33};
34
35DT_MACHINE_START(DOVE_DT, "Marvell Dove")
36 .init_machine = dove_init,
37 .restart = mvebu_restart,
38 .dt_compat = dove_dt_compat,
39MACHINE_END