forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-16 50a212ec906f7524620675f0c57357691c26c81f
kernel/arch/mips/ar7/clock.c
....@@ -1,21 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (C) 2007 Felix Fietkau <nbd@openwrt.org>
34 * Copyright (C) 2007 Eugene Konev <ejka@openwrt.org>
45 * Copyright (C) 2009 Florian Fainelli <florian@openwrt.org>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, write to the Free Software
18
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
196 */
207
218 #include <linux/kernel.h>
....@@ -249,9 +236,9 @@
249236
250237 static void __init tnetd7300_init_clocks(void)
251238 {
252
- u32 *bootcr = (u32 *)ioremap_nocache(AR7_REGS_DCL, 4);
239
+ u32 *bootcr = (u32 *)ioremap(AR7_REGS_DCL, 4);
253240 struct tnetd7300_clocks *clocks =
254
- ioremap_nocache(UR8_REGS_CLOCKS,
241
+ ioremap(UR8_REGS_CLOCKS,
255242 sizeof(struct tnetd7300_clocks));
256243
257244 bus_clk.rate = tnetd7300_get_clock(BUS_PLL_SOURCE_SHIFT,
....@@ -333,9 +320,9 @@
333320
334321 static void __init tnetd7200_init_clocks(void)
335322 {
336
- u32 *bootcr = (u32 *)ioremap_nocache(AR7_REGS_DCL, 4);
323
+ u32 *bootcr = (u32 *)ioremap(AR7_REGS_DCL, 4);
337324 struct tnetd7200_clocks *clocks =
338
- ioremap_nocache(AR7_REGS_CLOCKS,
325
+ ioremap(AR7_REGS_CLOCKS,
339326 sizeof(struct tnetd7200_clocks));
340327 int cpu_base, cpu_mul, cpu_prediv, cpu_postdiv;
341328 int dsp_base, dsp_mul, dsp_prediv, dsp_postdiv;