forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/arch/sh/boards/mach-sdk7786/fpga.c
....@@ -1,17 +1,14 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * SDK7786 FPGA Support.
34 *
45 * Copyright (C) 2010 Paul Mundt
5
- *
6
- * This file is subject to the terms and conditions of the GNU General Public
7
- * License. See the file "COPYING" in the main directory of this archive
8
- * for more details.
96 */
107 #include <linux/init.h>
118 #include <linux/io.h>
129 #include <linux/bcd.h>
1310 #include <mach/fpga.h>
14
-#include <asm/sizes.h>
11
+#include <linux/sizes.h>
1512
1613 #define FPGA_REGS_OFFSET 0x03fff800
1714 #define FPGA_REGS_SIZE 0x490
....@@ -35,7 +32,7 @@
3532 * is reserved.
3633 */
3734 for (area = PA_AREA0; area < PA_AREA7; area += SZ_64M) {
38
- base = ioremap_nocache(area + FPGA_REGS_OFFSET, FPGA_REGS_SIZE);
35
+ base = ioremap(area + FPGA_REGS_OFFSET, FPGA_REGS_SIZE);
3936 if (!base) {
4037 /* Failed to remap this area, move along. */
4138 continue;