On 11/07/2015 05:38, Peng Fan wrote:
> The i.MX6DQP has a PRG module, need to enable its clock for using IPU.
> 
> Signed-off-by: Peng Fan <[email protected]>
> Signed-off-by: Brown Oliver <[email protected]>
> Signed-off-by: Ye.Li <[email protected]>
> Reviewed-by: Fabio Estevam <[email protected]>
> Acked-by: Stefano Babic <[email protected]>
> ---
> 
> Changes v5:
>  Add Stefano's Acked-by
> 
> 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 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
>  /***************************************************/
> 

Applied to u-boot-imx, thanks !

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: [email protected]
=====================================================================
_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to