[U-Boot] [PATCH] video: ipuv3_fb: skip IPU shutdown if IPU was not enabled before

Anatolij Gustschin agust at denx.de
Mon Aug 28 18:08:26 UTC 2017


Hi Fabio,

On Mon, 28 Aug 2017 13:22:19 -0300
Fabio Estevam festevam at gmail.com wrote:
...
> > +       /*
> > +        * Check if IPU clock was enabled before. Won't access
> > +        * IPU registers if clock is not enabled.
> > +        */
> > +       reg = readl(&mxc_ccm->CCGR3);
> > +       if ((reg & MXC_CCM_CCGR3_IPU1_IPU_MASK) == 0)
> > +               return;  
> 
> Maybe you could also check whether IPU2 has been enabled?

currently IPU2 is not used, the driver never enables it. I checked
it when preparing this patch.

Thanks,
Anatolij


More information about the U-Boot mailing list