hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm/mach-mmp/mmp2-dt.c
....@@ -1,42 +1,38 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/arch/arm/mach-mmp/mmp2-dt.c
34 *
45 * Copyright (C) 2012 Marvell Technology Group Ltd.
56 * Author: Haojian Zhuang <haojian.zhuang@marvell.com>
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License version 2 as
9
- * publishhed by the Free Software Foundation.
107 */
118
129 #include <linux/io.h>
1310 #include <linux/irqchip.h>
1411 #include <linux/of_platform.h>
15
-#include <linux/clk-provider.h>
12
+#include <linux/of_clk.h>
13
+#include <linux/clocksource.h>
1614 #include <asm/mach/arch.h>
1715 #include <asm/mach/time.h>
1816 #include <asm/hardware/cache-tauros2.h>
1917
2018 #include "common.h"
2119
22
-extern void __init mmp_dt_init_timer(void);
23
-
2420 static void __init mmp_init_time(void)
2521 {
2622 #ifdef CONFIG_CACHE_TAUROS2
2723 tauros2_init(0);
2824 #endif
29
- mmp_dt_init_timer();
3025 of_clk_init(NULL);
26
+ timer_probe();
3127 }
3228
3329 static const char *const mmp2_dt_board_compat[] __initconst = {
34
- "mrvl,mmp2-brownstone",
30
+ "mrvl,mmp2",
3531 NULL,
3632 };
3733
3834 DT_MACHINE_START(MMP2_DT, "Marvell MMP2 (Device Tree Support)")
39
- .map_io = mmp_map_io,
35
+ .map_io = mmp2_map_io,
4036 .init_time = mmp_init_time,
4137 .dt_compat = mmp2_dt_board_compat,
4238 MACHINE_END