hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/mtd/maps/sc520cdp.c
....@@ -1,26 +1,12 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /* sc520cdp.c -- MTD map driver for AMD SC520 Customer Development Platform
23 *
34 * Copyright (C) 2001 Sysgo Real-Time Solutions GmbH
45 *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
18
- *
19
- *
206 * The SC520CDP is an evaluation board for the Elan SC520 processor available
217 * from AMD. It has two banks of 32-bit Flash ROM, each 8 Megabytes in size,
228 * and up to 512 KiB of 8-bit DIL Flash ROM.
23
- * For details see http://www.amd.com/products/epd/desiging/evalboards/18.elansc520/520_cdp_brief/index.html
9
+ * For details see https://www.amd.com/products/epd/desiging/evalboards/18.elansc520/520_cdp_brief/index.html
2410 */
2511
2612 #include <linux/module.h>
....@@ -188,8 +174,8 @@
188174 int i, j;
189175
190176 /* map in SC520's MMCR area */
191
- mmcr = ioremap_nocache(SC520_MMCR_BASE, SC520_MMCR_EXTENT);
192
- if(!mmcr) { /* ioremap_nocache failed: skip the PAR reprogramming */
177
+ mmcr = ioremap(SC520_MMCR_BASE, SC520_MMCR_EXTENT);
178
+ if(!mmcr) { /* ioremap failed: skip the PAR reprogramming */
193179 /* force physical address fields to BIOS defaults: */
194180 for(i = 0; i < NUM_FLASH_BANKS; i++)
195181 sc520cdp_map[i].phys = par_table[i].default_address;
....@@ -239,10 +225,10 @@
239225 (unsigned long long)sc520cdp_map[i].size,
240226 (unsigned long long)sc520cdp_map[i].phys);
241227
242
- sc520cdp_map[i].virt = ioremap_nocache(sc520cdp_map[i].phys, sc520cdp_map[i].size);
228
+ sc520cdp_map[i].virt = ioremap(sc520cdp_map[i].phys, sc520cdp_map[i].size);
243229
244230 if (!sc520cdp_map[i].virt) {
245
- printk("Failed to ioremap_nocache\n");
231
+ printk("Failed to ioremap\n");
246232 for (j = 0; j < i; j++) {
247233 if (mymtd[j]) {
248234 map_destroy(mymtd[j]);