summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorSandor Yu <R01008@freescale.com>2014-07-04 17:13:58 +0800
committerYe Li <ye.li@nxp.com>2016-03-25 13:39:24 +0800
commit2065b417ae93436736e49ca66b66aa0791d003fe (patch)
treea3a0e2b34a74a77eb63a9698cd6010790d0b09f9 /arch
parentd50b53f138dd3b4c463c80ac8e14f41ac0fdd415 (diff)
downloadu-boot-imx-2065b417ae93436736e49ca66b66aa0791d003fe.zip
u-boot-imx-2065b417ae93436736e49ca66b66aa0791d003fe.tar.gz
u-boot-imx-2065b417ae93436736e49ca66b66aa0791d003fe.tar.bz2
ENGR00321299 gis: clean csi0 input mux set bit in GPR
When gis enable in uboot, the CSI0 input mux select setting to vadc module, clean the bit when gis disabled. Signed-off-by: Sandor Yu <R01008@freescale.com> (cherry picked from commit ae66b17b7da3be50dc81ca636b67e8e879f52e26) (cherry picked from commit c83fd326e810c2fff44b8b02e78406d5d04c977c) Signed-off-by: Peng Fan <Peng.Fan@freescale.com> (cherry picked from commit d6e803ed5f51d31ebe7e9d178aa11f16401b7fc8)
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/armv7/mx6/soc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c
index 871716a..77417b2 100644
--- a/arch/arm/cpu/armv7/mx6/soc.c
+++ b/arch/arm/cpu/armv7/mx6/soc.c
@@ -346,6 +346,7 @@ void vadc_power_up(void)
void vadc_power_down(void)
{
+ struct iomuxc *iomux = (struct iomuxc *)IOMUXC_BASE_ADDR;
u32 val;
/* Power down vadc ext power
@@ -354,6 +355,11 @@ void vadc_power_down(void)
val &= ~0x40000;
val |= 0x20000;
writel(val, GPC_BASE_ADDR + 0);
+
+ /* clean csi0 connect to vadc */
+ val = readl(&iomux->gpr[5]);
+ val &= ~IMX6SX_GPR5_CSI1_MUX_CTRL_MASK,
+ writel(val, &iomux->gpr[5]);
}
#endif