From: Peng Fan Date: Sat, 11 Jul 2015 03:38:45 +0000 (+0800) Subject: imx: mx6qp Enable PRG clock for IPU X-Git-Tag: v2015.10-rc1~2^2~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d7794615c7672b03b5140dfe2bac65daf7ce5eb;p=platform%2Fkernel%2Fu-boot.git imx: mx6qp Enable PRG clock for IPU The i.MX6DQP has a PRG module, need to enable its clock for using IPU. Signed-off-by: Peng Fan Signed-off-by: Brown Oliver Signed-off-by: Ye.Li Reviewed-by: Fabio Estevam Acked-by: Stefano Babic --- diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock.c index cd4bfdd..3e94472 100644 --- a/arch/arm/cpu/armv7/mx6/clock.c +++ b/arch/arm/cpu/armv7/mx6/clock.c @@ -853,6 +853,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 /***************************************************/