forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/mips/pic32/pic32mzda/early_pin.c
....@@ -1,15 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Joshua Henderson <joshua.henderson@microchip.com>
34 * Copyright (C) 2015 Microchip Technology Inc. All rights reserved.
4
- *
5
- * This program is free software; you can distribute it and/or modify it
6
- * under the terms of the GNU General Public License (Version 2) as
7
- * published by the Free Software Foundation.
8
- *
9
- * This program is distributed in the hope it will be useful, but WITHOUT
10
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12
- * for more details.
135 */
146 #include <asm/io.h>
157
....@@ -130,7 +122,7 @@
130122
131123 void pic32_pps_input(int function, int pin)
132124 {
133
- void __iomem *pps_base = ioremap_nocache(PPS_BASE, 0xF4);
125
+ void __iomem *pps_base = ioremap(PPS_BASE, 0xF4);
134126 int i;
135127
136128 for (i = 0; i < ARRAY_SIZE(input_pin_reg); i++) {
....@@ -260,7 +252,7 @@
260252
261253 void pic32_pps_output(int function, int pin)
262254 {
263
- void __iomem *pps_base = ioremap_nocache(PPS_BASE, 0x170);
255
+ void __iomem *pps_base = ioremap(PPS_BASE, 0x170);
264256 int i;
265257
266258 for (i = 0; i < ARRAY_SIZE(output_pin_reg); i++) {