diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2011-11-09 04:15:02 +0000 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2011-11-11 11:36:58 +0100 |
commit | ce93dc9bce15434989e01a6fc6d0124a8416b25d (patch) | |
tree | dd39ceaf651f8c163ef6765cd674a90d16c0e618 /arch/arm/cpu | |
parent | 94e6dd2bc51d0384422f148675efb31c5ae1a560 (diff) |
mx31: Use proper IO accessor for GPR register
Use proper IO accessor for GPR register.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r-- | arch/arm/cpu/arm1136/mx31/generic.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/cpu/arm1136/mx31/generic.c b/arch/arm/cpu/arm1136/mx31/generic.c index 1621e9eaa3..167e97a965 100644 --- a/arch/arm/cpu/arm1136/mx31/generic.c +++ b/arch/arm/cpu/arm1136/mx31/generic.c @@ -144,14 +144,15 @@ void mx31_set_pad(enum iomux_pins pin, u32 config) void mx31_set_gpr(enum iomux_gp_func gp, char en) { u32 l; + struct iomuxc_regs *iomuxc = (struct iomuxc_regs *)IOMUXC_BASE; - l = readl(IOMUXC_GPR); + l = readl(&iomuxc->gpr); if (en) l |= gp; else l &= ~gp; - writel(l, IOMUXC_GPR); + writel(l, &iomuxc->gpr); } void mxc_setup_weimcs(int cs, const struct mxc_weimcs *weimcs) |