diff options
author | Ye.Li <B37916@freescale.com> | 2015-05-13 11:35:50 +0800 |
---|---|---|
committer | Ye.Li <B37916@freescale.com> | 2015-05-13 15:54:31 +0800 |
commit | 3624e4b6b0c161a6a58b9cef3aa32181050b0402 (patch) | |
tree | 25e4d5a0ff91585593d56bce13abaea3c8c7687f /arch/arm/cpu | |
parent | 49b90a23a3e267ee293dabe971bee4f7eabd8373 (diff) | |
download | u-boot-imx-3624e4b6b0c161a6a58b9cef3aa32181050b0402.zip u-boot-imx-3624e4b6b0c161a6a58b9cef3aa32181050b0402.tar.gz u-boot-imx-3624e4b6b0c161a6a58b9cef3aa32181050b0402.tar.bz2 |
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/arm/cpu')
-rw-r--r-- | arch/arm/cpu/armv7/mx6/soc.c | 4 |
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 1ab6dbe..9b0f126 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 |