xref: /openbmc/linux/arch/arm/mach-mmp/mmp2-dt.c (revision 89ce0a2f)
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/of_clk.h>
10 #include <linux/clocksource.h>
11 #include <asm/mach/arch.h>
12 #include <asm/hardware/cache-tauros2.h>
13 
14 #include "common.h"
15 
mmp_init_time(void)16 static void __init mmp_init_time(void)
17 {
18 #ifdef CONFIG_CACHE_TAUROS2
19 	tauros2_init(0);
20 #endif
21 	of_clk_init(NULL);
22 	timer_probe();
23 }
24 
25 static const char *const mmp2_dt_board_compat[] __initconst = {
26 	"mrvl,mmp2",
27 	NULL,
28 };
29 
30 DT_MACHINE_START(MMP2_DT, "Marvell MMP2 (Device Tree Support)")
31 	.map_io		= mmp2_map_io,
32 	.init_time	= mmp_init_time,
33 	.dt_compat	= mmp2_dt_board_compat,
34 MACHINE_END
35