提交 f32b0696 编写于 作者: G Geert Uytterhoeven

clk: renesas: r8a7740: Always use readl()/writel()

On arm32, there is no reason to use the (soon deprecated)
clk_readl()/clk_writel().  Hence use the generic readl()/writel()
instead.
Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: NSimon Horman <horms+renesas@verge.net.au>
上级 b86b493e
...@@ -98,20 +98,20 @@ r8a7740_cpg_register_clock(struct device_node *np, struct r8a7740_cpg *cpg, ...@@ -98,20 +98,20 @@ r8a7740_cpg_register_clock(struct device_node *np, struct r8a7740_cpg *cpg,
* clock implementation and we currently have no need to change * clock implementation and we currently have no need to change
* the multiplier value. * the multiplier value.
*/ */
u32 value = clk_readl(cpg->reg + CPG_FRQCRC); u32 value = readl(cpg->reg + CPG_FRQCRC);
parent_name = "system"; parent_name = "system";
mult = ((value >> 24) & 0x7f) + 1; mult = ((value >> 24) & 0x7f) + 1;
} else if (!strcmp(name, "pllc1")) { } else if (!strcmp(name, "pllc1")) {
u32 value = clk_readl(cpg->reg + CPG_FRQCRA); u32 value = readl(cpg->reg + CPG_FRQCRA);
parent_name = "system"; parent_name = "system";
mult = ((value >> 24) & 0x7f) + 1; mult = ((value >> 24) & 0x7f) + 1;
div = 2; div = 2;
} else if (!strcmp(name, "pllc2")) { } else if (!strcmp(name, "pllc2")) {
u32 value = clk_readl(cpg->reg + CPG_PLLC2CR); u32 value = readl(cpg->reg + CPG_PLLC2CR);
parent_name = "system"; parent_name = "system";
mult = ((value >> 24) & 0x3f) + 1; mult = ((value >> 24) & 0x3f) + 1;
} else if (!strcmp(name, "usb24s")) { } else if (!strcmp(name, "usb24s")) {
u32 value = clk_readl(cpg->reg + CPG_USBCKCR); u32 value = readl(cpg->reg + CPG_USBCKCR);
if (value & BIT(7)) if (value & BIT(7))
/* extal2 */ /* extal2 */
parent_name = of_clk_get_parent_name(np, 1); parent_name = of_clk_get_parent_name(np, 1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册