summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandor Yu <R01008@freescale.com>2014-07-04 17:13:58 +0800
committerSandor Yu <R01008@freescale.com>2014-07-07 10:09:33 +0800
commit4dc03e6d07d4ea75ce0932a97b9a185c2047a097 (patch)
treefcc2a4ddb5a2569b211aacdf11a5dfec369e7ad0
parent538d681a71debc2004f07c10479e3a5b5d02f6bb (diff)
downloadu-boot-imx-4dc03e6d07d4ea75ce0932a97b9a185c2047a097.zip
u-boot-imx-4dc03e6d07d4ea75ce0932a97b9a185c2047a097.tar.gz
u-boot-imx-4dc03e6d07d4ea75ce0932a97b9a185c2047a097.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)
-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 189463d..1f870d6 100644
--- a/arch/arm/cpu/armv7/mx6/soc.c
+++ b/arch/arm/cpu/armv7/mx6/soc.c
@@ -413,6 +413,7 @@ void vadc_power_up(void)
void vadc_power_down(void)
{
+ struct iomuxc *iomux = (struct iomuxc *)IOMUXC_GPR_BASE_ADDR;
u32 val;
/* Power down vadc ext power
@@ -421,6 +422,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