| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * RZ/A1 Core CPG Clocks |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2013 Ideas On Board SPRL |
|---|
| 5 | 6 | * Copyright (C) 2014 Wolfram Sang, Sang Engineering <wsa@sang-engineering.com> |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 8 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 9 | | - * the Free Software Foundation; version 2 of the License. |
|---|
| 10 | 7 | */ |
|---|
| 11 | 8 | |
|---|
| 12 | 9 | #include <linux/clk-provider.h> |
|---|
| 13 | 10 | #include <linux/clk/renesas.h> |
|---|
| 14 | 11 | #include <linux/init.h> |
|---|
| 12 | +#include <linux/io.h> |
|---|
| 15 | 13 | #include <linux/kernel.h> |
|---|
| 16 | 14 | #include <linux/of.h> |
|---|
| 17 | 15 | #include <linux/of_address.h> |
|---|
| .. | .. |
|---|
| 39 | 37 | void __iomem *ppr0, *pibc0; |
|---|
| 40 | 38 | u16 modes; |
|---|
| 41 | 39 | |
|---|
| 42 | | - ppr0 = ioremap_nocache(PPR0, 2); |
|---|
| 43 | | - pibc0 = ioremap_nocache(PIBC0, 2); |
|---|
| 40 | + ppr0 = ioremap(PPR0, 2); |
|---|
| 41 | + pibc0 = ioremap(PIBC0, 2); |
|---|
| 44 | 42 | BUG_ON(!ppr0 || !pibc0); |
|---|
| 45 | 43 | iowrite16(4, pibc0); /* enable input buffer */ |
|---|
| 46 | 44 | modes = ioread16(ppr0); |
|---|
| .. | .. |
|---|
| 113 | 111 | |
|---|
| 114 | 112 | clk = rz_cpg_register_clock(np, cpg, name); |
|---|
| 115 | 113 | if (IS_ERR(clk)) |
|---|
| 116 | | - pr_err("%s: failed to register %s %s clock (%ld)\n", |
|---|
| 117 | | - __func__, np->name, name, PTR_ERR(clk)); |
|---|
| 114 | + pr_err("%s: failed to register %pOFn %s clock (%ld)\n", |
|---|
| 115 | + __func__, np, name, PTR_ERR(clk)); |
|---|
| 118 | 116 | else |
|---|
| 119 | 117 | cpg->data.clks[i] = clk; |
|---|
| 120 | 118 | } |
|---|