summaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx/pm-imx3.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-04-03 12:42:27 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-04-25 17:03:45 +0200
commiteb92044eb3d59d29c9812e85e3a4bf41f6f38e3a (patch)
tree155d37bb27ce0c312c2825732b3d0361b8209a49 /arch/arm/mach-imx/pm-imx3.c
parent821dc4dfd955da0679872088025542a0795c6b3e (diff)
ARM i.MX3: Make ccm base address a variable
Instead of having a cpu_is_* in each ccm register access it is more efficient to make it a variable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/pm-imx3.c')
-rw-r--r--arch/arm/mach-imx/pm-imx3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/pm-imx3.c b/arch/arm/mach-imx/pm-imx3.c
index b3752439632e..822103bdb709 100644
--- a/arch/arm/mach-imx/pm-imx3.c
+++ b/arch/arm/mach-imx/pm-imx3.c
@@ -21,14 +21,14 @@
*/
void mx3_cpu_lp_set(enum mx3_cpu_pwr_mode mode)
{
- int reg = __raw_readl(MXC_CCM_CCMR);
+ int reg = __raw_readl(mx3_ccm_base + MXC_CCM_CCMR);
reg &= ~MXC_CCM_CCMR_LPM_MASK;
switch (mode) {
case MX3_WAIT:
if (cpu_is_mx35())
reg |= MXC_CCM_CCMR_LPM_WAIT_MX35;
- __raw_writel(reg, MXC_CCM_CCMR);
+ __raw_writel(reg, mx3_ccm_base + MXC_CCM_CCMR);
break;
default:
pr_err("Unknown cpu power mode: %d\n", mode);