1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3  *  linux/arch/arm/mach-mmp/mmp-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 
16 static const char *const pxa168_dt_board_compat[] __initconst = {
17 	"mrvl,pxa168-aspenite",
18 	NULL,
19 };
20 
21 static const char *const pxa910_dt_board_compat[] __initconst = {
22 	"mrvl,pxa910-dkb",
23 	NULL,
24 };
25 
mmp_init_time(void)26 static void __init mmp_init_time(void)
27 {
28 #ifdef CONFIG_CACHE_TAUROS2
29 	tauros2_init(0);
30 #endif
31 	of_clk_init(NULL);
32 	timer_probe();
33 }
34 
35 DT_MACHINE_START(PXA168_DT, "Marvell PXA168 (Device Tree Support)")
36 	.map_io		= mmp_map_io,
37 	.init_time	= mmp_init_time,
38 	.dt_compat	= pxa168_dt_board_compat,
39 MACHINE_END
40 
41 DT_MACHINE_START(PXA910_DT, "Marvell PXA910 (Device Tree Support)")
42 	.map_io		= mmp_map_io,
43 	.init_time	= mmp_init_time,
44 	.dt_compat	= pxa910_dt_board_compat,
45 MACHINE_END
46