aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/clock.c
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-09-08 09:51:05 +0000
committerFlorian Fainelli <florian@openwrt.org>2012-09-08 09:51:05 +0000
commit6771d63284ee86924f5705a53953a50c4c43135a (patch)
tree94ce21298e99ba002240950105fc2d258dd77dd6 /target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/clock.c
parent95f1b6d4157b93249cd6dd2a92b4116fabcff1f7 (diff)
downloadupstream-6771d63284ee86924f5705a53953a50c4c43135a.tar.gz
upstream-6771d63284ee86924f5705a53953a50c4c43135a.tar.bz2
upstream-6771d63284ee86924f5705a53953a50c4c43135a.zip
use the recommended ARM I/O accessors
use {read,write}l_relaxed instead of the plain __raw_{read,write}l variants. SVN-Revision: 33330
Diffstat (limited to 'target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/clock.c')
-rw-r--r--target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/clock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/clock.c b/target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/clock.c
index 88ecdffbb2..413bfecaa1 100644
--- a/target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/clock.c
+++ b/target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/clock.c
@@ -54,13 +54,13 @@ static int clk_local_onoff_enable(struct clk *clk, int enable)
if (!clk->enable_reg)
return 0;
- tmp = __raw_readl(mcs814x_sysdbg_base + clk->enable_reg);
+ tmp = readl_relaxed(mcs814x_sysdbg_base + clk->enable_reg);
if (!enable)
tmp &= ~clk->enable_mask;
else
tmp |= clk->enable_mask;
- __raw_writel(tmp, mcs814x_sysdbg_base + clk->enable_reg);
+ writel_relaxed(tmp, mcs814x_sysdbg_base + clk->enable_reg);
return 0;
}
@@ -254,7 +254,7 @@ void __init mcs814x_clk_init(void)
clkdev_add_table(mcs814x_chip_clks, ARRAY_SIZE(mcs814x_chip_clks));
/* read the bootstrap registers to know the exact clocking scheme */
- bs1 = __raw_readl(mcs814x_sysdbg_base + SYSDBG_BS1);
+ bs1 = readl_relaxed(mcs814x_sysdbg_base + SYSDBG_BS1);
cpu_freq = (bs1 >> CPU_FREQ_SHIFT) & CPU_FREQ_MASK;
pr_info("CPU frequency: %lu (kHz)\n", cpu_freq_table[cpu_freq]);