forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/arch/arm/mach-mmp/mmp2.c
....@@ -1,13 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/arch/arm/mach-mmp/mmp2.c
34 *
45 * code name MMP2
56 *
67 * Copyright (C) 2009 Marvell International Ltd.
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
118 */
129 #include <linux/clk/mmp.h>
1310 #include <linux/module.h>
....@@ -23,7 +20,7 @@
2320 #include <asm/mach/time.h>
2421 #include "addr-map.h"
2522 #include "regs-apbc.h"
26
-#include "cputype.h"
23
+#include <linux/soc/mmp/cputype.h>
2724 #include "irqs.h"
2825 #include "mfp.h"
2926 #include "devices.h"
....@@ -134,7 +131,7 @@
134131 clk_rst = APBC_APBCLK | APBC_FNCLK | APBC_FNCLKSEL(1);
135132 __raw_writel(clk_rst, APBC_TIMERS);
136133
137
- timer_init(IRQ_MMP2_TIMER1);
134
+ mmp_timer_init(IRQ_MMP2_TIMER1, 6500000);
138135 }
139136
140137 /* on-chip devices */