Linux 5.7.7
[linux/fpc-iii.git] / arch / arm / mach-mmp / mmp-dt.c
blob91214996acecc9fb9a4fca3dedfd6635e921eb30
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * linux/arch/arm/mach-mmp/mmp-dt.c
5 * Copyright (C) 2012 Marvell Technology Group Ltd.
6 * Author: Haojian Zhuang <haojian.zhuang@marvell.com>
7 */
9 #include <linux/irqchip.h>
10 #include <linux/of_platform.h>
11 #include <linux/clk-provider.h>
12 #include <linux/clocksource.h>
13 #include <asm/mach/arch.h>
14 #include <asm/mach/time.h>
15 #include <asm/hardware/cache-tauros2.h>
17 #include "common.h"
19 static const char *const pxa168_dt_board_compat[] __initconst = {
20 "mrvl,pxa168-aspenite",
21 NULL,
24 static const char *const pxa910_dt_board_compat[] __initconst = {
25 "mrvl,pxa910-dkb",
26 NULL,
29 static void __init mmp_init_time(void)
31 #ifdef CONFIG_CACHE_TAUROS2
32 tauros2_init(0);
33 #endif
34 of_clk_init(NULL);
35 timer_probe();
38 DT_MACHINE_START(PXA168_DT, "Marvell PXA168 (Device Tree Support)")
39 .map_io = mmp_map_io,
40 .init_time = mmp_init_time,
41 .dt_compat = pxa168_dt_board_compat,
42 MACHINE_END
44 DT_MACHINE_START(PXA910_DT, "Marvell PXA910 (Device Tree Support)")
45 .map_io = mmp_map_io,
46 .init_time = mmp_init_time,
47 .dt_compat = pxa910_dt_board_compat,
48 MACHINE_END