summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorYe.Li <B37916@freescale.com>2015-05-13 11:35:50 +0800
committerMax Krummenacher <max.krummenacher@toradex.com>2016-03-09 14:42:34 +0100
commit143c9712af6a44bdaf123549d374d2d42c86f159 (patch)
tree2c94dadd2db03e6203119ce2013a8368767ad26c /arch
parentc60c4f024e863b47e5c93a7ff62e88fb745d0e78 (diff)
MLK-10884 imx: MX6SX: Fix IOMUXC GPR registers access issue
The iomuxc structure has changed to add 0x4000 offset for i.MX6SX and UL, so when using this structure to access gpr registers needs to change the base address to IOMUXC_BASE_ADDR. Signed-off-by: Ye.Li <B37916@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/armv7/mx6/soc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c
index 1ab6dbe47b..9b0f12662d 100644
--- a/arch/arm/cpu/armv7/mx6/soc.c
+++ b/arch/arm/cpu/armv7/mx6/soc.c
@@ -324,7 +324,7 @@ static void init_src(void)
#ifdef CONFIG_MX6SX
void vadc_power_up(void)
{
- struct iomuxc *iomux = (struct iomuxc *)IOMUXC_GPR_BASE_ADDR;
+ struct iomuxc *iomux = (struct iomuxc *)IOMUXC_BASE_ADDR;
u32 val;
/* csi0 */
@@ -356,7 +356,7 @@ void vadc_power_up(void)
void vadc_power_down(void)
{
- struct iomuxc *iomux = (struct iomuxc *)IOMUXC_GPR_BASE_ADDR;
+ struct iomuxc *iomux = (struct iomuxc *)IOMUXC_BASE_ADDR;
u32 val;
/* Power down vadc ext power