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: https://git.sur5r.net/?a=commitdiff_plain;h=8d7794615c7672b03b5140dfe2bac65daf7ce5eb;p=u-boot 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 cd4bfdd9aa..3e9447272d 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 /***************************************************/