• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/of_clk.h>
13 #include <linux/clocksource.h>
14 #include <asm/mach/arch.h>
15 #include <asm/mach/time.h>
16 #include <asm/hardware/cache-tauros2.h>
17 
18 #include "common.h"
19 
mmp_init_time(void)20 static void __init mmp_init_time(void)
21 {
22 #ifdef CONFIG_CACHE_TAUROS2
23 	tauros2_init(0);
24 #endif
25 	of_clk_init(NULL);
26 	timer_probe();
27 }
28 
29 static const char *const mmp2_dt_board_compat[] __initconst = {
30 	"mrvl,mmp2",
31 	NULL,
32 };
33 
34 DT_MACHINE_START(MMP2_DT, "Marvell MMP2 (Device Tree Support)")
35 	.map_io		= mmp2_map_io,
36 	.init_time	= mmp_init_time,
37 	.dt_compat	= mmp2_dt_board_compat,
38 MACHINE_END
39