| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2007 Felix Fietkau <nbd@openwrt.org> |
|---|
| 3 | 4 | * Copyright (C) 2007 Eugene Konev <ejka@openwrt.org> |
|---|
| 4 | 5 | * 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 |
|---|
| 19 | 6 | */ |
|---|
| 20 | 7 | |
|---|
| 21 | 8 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 249 | 236 | |
|---|
| 250 | 237 | static void __init tnetd7300_init_clocks(void) |
|---|
| 251 | 238 | { |
|---|
| 252 | | - u32 *bootcr = (u32 *)ioremap_nocache(AR7_REGS_DCL, 4); |
|---|
| 239 | + u32 *bootcr = (u32 *)ioremap(AR7_REGS_DCL, 4); |
|---|
| 253 | 240 | struct tnetd7300_clocks *clocks = |
|---|
| 254 | | - ioremap_nocache(UR8_REGS_CLOCKS, |
|---|
| 241 | + ioremap(UR8_REGS_CLOCKS, |
|---|
| 255 | 242 | sizeof(struct tnetd7300_clocks)); |
|---|
| 256 | 243 | |
|---|
| 257 | 244 | bus_clk.rate = tnetd7300_get_clock(BUS_PLL_SOURCE_SHIFT, |
|---|
| .. | .. |
|---|
| 333 | 320 | |
|---|
| 334 | 321 | static void __init tnetd7200_init_clocks(void) |
|---|
| 335 | 322 | { |
|---|
| 336 | | - u32 *bootcr = (u32 *)ioremap_nocache(AR7_REGS_DCL, 4); |
|---|
| 323 | + u32 *bootcr = (u32 *)ioremap(AR7_REGS_DCL, 4); |
|---|
| 337 | 324 | struct tnetd7200_clocks *clocks = |
|---|
| 338 | | - ioremap_nocache(AR7_REGS_CLOCKS, |
|---|
| 325 | + ioremap(AR7_REGS_CLOCKS, |
|---|
| 339 | 326 | sizeof(struct tnetd7200_clocks)); |
|---|
| 340 | 327 | int cpu_base, cpu_mul, cpu_prediv, cpu_postdiv; |
|---|
| 341 | 328 | int dsp_base, dsp_mul, dsp_prediv, dsp_postdiv; |
|---|