[U-Boot] [PATCH V4 4/6] imx: mx6qp Enable PRG clock for IPU
Peng Fan
Peng.Fan at freescale.com
Tue Jun 30 04:36:14 CEST 2015
The i.MX6DQP 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>
Reviewed-by: Fabio Estevam <fabio.estevam at freescale.com>
---
Changes v4:
Take Fabio's suggestion, use setbits_le32. Add Fabio's Reviewed-by
Changes v3:
Remove ipu qos settings
Changes v2:
1. runtime check
2. introduce ipu qos settings for better performance
arch/arm/cpu/armv7/mx6/clock.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock.c
index 446fe84..b7e714c 100644
--- a/arch/arm/cpu/armv7/mx6/clock.c
+++ b/arch/arm/cpu/armv7/mx6/clock.c
@@ -866,6 +866,11 @@ void enable_ipu_clock(void)
reg = readl(&mxc_ccm->CCGR3);
reg |= MXC_CCM_CCGR3_IPU1_IPU_MASK;
writel(reg, &mxc_ccm->CCGR3);
+
+ if (is_mx6dqp()) {
+ setbits_le32(&mxc_ccm->CCGR6, MXC_CCM_CCGR6_PRG_CLK0_MASK);
+ setbits_le32(&mxc_ccm->CCGR3, MXC_CCM_CCGR3_IPU2_IPU_MASK);
+ }
}
#endif
/***************************************************/
--
1.8.4
More information about the U-Boot
mailing list