diff options
author | Ye.Li <B37916@freescale.com> | 2014-06-12 19:33:05 +0800 |
---|---|---|
committer | Ye.Li <B37916@freescale.com> | 2014-06-17 11:14:06 +0800 |
commit | 721c7a1448c5b7265b597b83d18f8338a27ea213 (patch) | |
tree | 1990ec1e200dc13180ed932a76466fa4399b11b6 /arch/arm/cpu/armv7/mx6 | |
parent | 52e3ba6f5e2feec1e501af4ecdf08d7d6dd07056 (diff) | |
download | u-boot-imx-721c7a1448c5b7265b597b83d18f8338a27ea213.zip u-boot-imx-721c7a1448c5b7265b597b83d18f8338a27ea213.tar.gz u-boot-imx-721c7a1448c5b7265b597b83d18f8338a27ea213.tar.bz2 |
ENGR00315894-76 mx6 clock: Add vadc clock enable function
Add vadc clock enable function.
Signed-off-by: Sandor Yu <R01008@freescale.com>
Signed-off-by: Ye.Li <B37916@freescale.com>
Diffstat (limited to 'arch/arm/cpu/armv7/mx6')
-rw-r--r-- | arch/arm/cpu/armv7/mx6/clock.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock.c index 1dc97e4..eed413d 100644 --- a/arch/arm/cpu/armv7/mx6/clock.c +++ b/arch/arm/cpu/armv7/mx6/clock.c @@ -585,6 +585,15 @@ void enable_enet_clock(void) writel(reg, &imx_ccm->CCGR3); } +void mxs_set_vadcclk() +{ + u32 reg = 0; + + reg = readl(&imx_ccm->cscmr2); + reg &= ~MXC_CCM_CSCMR2_VID_CLK_SEL_MASK; + reg |= 0x19 << MXC_CCM_CSCMR2_VID_CLK_SEL_OFFSET; + writel(reg, &imx_ccm->cscmr2); +} #endif #ifdef CONFIG_FEC_MXC |