.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* sc520cdp.c -- MTD map driver for AMD SC520 Customer Development Platform |
---|
2 | 3 | * |
---|
3 | 4 | * Copyright (C) 2001 Sysgo Real-Time Solutions GmbH |
---|
4 | 5 | * |
---|
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 | | - * |
---|
20 | 6 | * The SC520CDP is an evaluation board for the Elan SC520 processor available |
---|
21 | 7 | * from AMD. It has two banks of 32-bit Flash ROM, each 8 Megabytes in size, |
---|
22 | 8 | * 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 |
---|
24 | 10 | */ |
---|
25 | 11 | |
---|
26 | 12 | #include <linux/module.h> |
---|
.. | .. |
---|
188 | 174 | int i, j; |
---|
189 | 175 | |
---|
190 | 176 | /* 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 */ |
---|
193 | 179 | /* force physical address fields to BIOS defaults: */ |
---|
194 | 180 | for(i = 0; i < NUM_FLASH_BANKS; i++) |
---|
195 | 181 | sc520cdp_map[i].phys = par_table[i].default_address; |
---|
.. | .. |
---|
239 | 225 | (unsigned long long)sc520cdp_map[i].size, |
---|
240 | 226 | (unsigned long long)sc520cdp_map[i].phys); |
---|
241 | 227 | |
---|
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); |
---|
243 | 229 | |
---|
244 | 230 | if (!sc520cdp_map[i].virt) { |
---|
245 | | - printk("Failed to ioremap_nocache\n"); |
---|
| 231 | + printk("Failed to ioremap\n"); |
---|
246 | 232 | for (j = 0; j < i; j++) { |
---|
247 | 233 | if (mymtd[j]) { |
---|
248 | 234 | map_destroy(mymtd[j]); |
---|