xref: /openbmc/linux/arch/arm/mach-mmp/mmp2-dt.c (revision 7d545e77)
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3  *  linux/arch/arm/mach-mmp/mmp2-dt.c
4  *
5  *  Copyright (C) 2012 Marvell Technology Group Ltd.
6  *  Author: Haojian Zhuang <haojian.zhuang@marvell.com>
7  */
8 
9 #include <linux/io.h>
10 #include <linux/irqchip.h>
11 #include <linux/of_platform.h>
12 #include <linux/clk-provider.h>
13 #include <asm/mach/arch.h>
14 #include <asm/mach/time.h>
15 #include <asm/hardware/cache-tauros2.h>
16 
17 #include "common.h"
18 
19 extern void __init mmp_dt_init_timer(void);
20 
21 static void __init mmp_init_time(void)
22 {
23 #ifdef CONFIG_CACHE_TAUROS2
24 	tauros2_init(0);
25 #endif
26 	of_clk_init(NULL);
27 	mmp_dt_init_timer();
28 }
29 
30 static const char *const mmp2_dt_board_compat[] __initconst = {
31 	"mrvl,mmp2",
32 	NULL,
33 };
34 
35 DT_MACHINE_START(MMP2_DT, "Marvell MMP2 (Device Tree Support)")
36 	.map_io		= mmp_map_io,
37 	.init_time	= mmp_init_time,
38 	.dt_compat	= mmp2_dt_board_compat,
39 MACHINE_END
40