From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Wed, 10 Jun 2015 11:24:04 +0200 Subject: [U-Boot] [PATCH 6/8] imx: mx6qp: Enable PRG clock for IPU In-Reply-To: <1433923603-28119-6-git-send-email-Peng.Fan@freescale.com> References: <1433923603-28119-1-git-send-email-Peng.Fan@freescale.com> <1433923603-28119-6-git-send-email-Peng.Fan@freescale.com> Message-ID: <55780234.9090303@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 10/06/2015 10:06, Peng Fan wrote: > From: "Ye.Li" > > The i.MX6QP 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 > --- > 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); This is easy to replace with runtime detection. > +#endif > } > #endif > /***************************************************/ > Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================