[U-Boot] [PATCH 6/8] imx: mx6qp: Enable PRG clock for IPU
Peng Fan
Peng.Fan at freescale.com
Wed Jun 10 10:06:41 CEST 2015
From: "Ye.Li" <B37916 at freescale.com>
The i.MX6QP has a PRG module, need to enable its clock for using
IPU.
Signed-off-by: Peng Fan <Peng.Fan at freescale.com>
Signed-off-by: Brown Oliver <B37094 at freescale.com>
Signed-off-by: Ye.Li <B37916 at freescale.com>
---
arch/arm/cpu/armv7/mx6/clock.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock.c
index 36cd5a8..ae1b4cc 100644
--- a/arch/arm/cpu/armv7/mx6/clock.c
+++ b/arch/arm/cpu/armv7/mx6/clock.c
@@ -861,6 +861,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
/***************************************************/
--
1.8.4
More information about the U-Boot
mailing list