summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorYe.Li <B37916@freescale.com>2015-03-23 16:08:46 +0800
committerPeng Fan <Peng.Fan@freescale.com>2015-04-29 15:03:07 +0800
commit0d631cb912e3c75b8c140cc483c40c3c5984d2d6 (patch)
tree390f2593f7655738076ac8936ae3b33505ccebb3 /arch
parent8397fa986a27dda1bf933387b7389f493b0cb0dd (diff)
downloadu-boot-imx-0d631cb912e3c75b8c140cc483c40c3c5984d2d6.zip
u-boot-imx-0d631cb912e3c75b8c140cc483c40c3c5984d2d6.tar.gz
u-boot-imx-0d631cb912e3c75b8c140cc483c40c3c5984d2d6.tar.bz2
MLK-10448-5 imx: mx6qp: Enable PRG clock for IPU
The i.MX6QP has a PRG module, need to enable its clock for using IPU. Signed-off-by: Peng Fan <Peng.Fan@freescale.com> Signed-off-by: Brown Oliver <B37094@freescale.com> Signed-off-by: Ye.Li <B37916@freescale.com> (cherry picked from commit 089f399ea07db79d6bca8fdc08b442b59eb55feb)
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/armv7/mx6/clock.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock.c
index fadb73b..49feff3 100644
--- a/arch/arm/cpu/armv7/mx6/clock.c
+++ b/arch/arm/cpu/armv7/mx6/clock.c
@@ -1105,6 +1105,12 @@ void enable_ipu_clock(void)
reg = readl(&mxc_ccm->CCGR3);
reg |= MXC_CCM_CCGR3_IPU1_IPU_MASK;
writel(reg, &mxc_ccm->CCGR3);
+
+#ifdef CONFIG_MX6QP
+ reg = readl(&mxc_ccm->CCGR6);
+ reg |= MXC_CCM_CCGR6_PRG_CLK0_MASK;
+ writel(reg, &mxc_ccm->CCGR6);
+#endif
}
#endif
/***************************************************/