[U-Boot] [PATCH 02/13] pico-imx6ul: Convert to SPL

Michael Nazzareno Trimarchi michael at amarulasolutions.com
Tue Sep 4 12:41:33 UTC 2018


Hi

On Tue, Sep 4, 2018 at 2:33 PM Fabio Estevam <festevam at gmail.com> wrote:
>
> Hi Michael,
>
> On Mon, Sep 3, 2018 at 10:05 AM, Michael Nazzareno Trimarchi
> <michael at amarulasolutions.com> wrote:
>
> >> >> +static void ccgr_init(void)
> >> >> +{
> >> >> +       struct mxc_ccm_reg *ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR;
> >> >> +
> >> >> +       writel(0xFFFFFFFF, &ccm->CCGR0);
> >> >> +       writel(0xFFFFFFFF, &ccm->CCGR1);
> >> >> +       writel(0xFFFFFFFF, &ccm->CCGR2);
> >> >> +       writel(0xFFFFFFFF, &ccm->CCGR3);
> >> >> +       writel(0xFFFFFFFF, &ccm->CCGR4);
> >> >> +       writel(0xFFFFFFFF, &ccm->CCGR5);
> >> >> +       writel(0xFFFFFFFF, &ccm->CCGR6);
> >> >> +       writel(0xFFFFFFFF, &ccm->CCGR7);
> >
> > are you sure that arrive to 7?
>
> You are right. CCGR7 is not available on mx6ul. I will fix it.
>
> > I think that it's not a good strategy to enable all the gate in general here.
>
> Yes, the main point of this patch is to convert from DCD table to SPL.
>
> As the DCD table enables all the clocks I kept the same approach.
>
> I agree that this can be further improved by only turning on the
> clocks that are used by the bootloader.

Well, yes and no. Not all the bits can be writable according to the
documentation if I remember and if the value you
put are the value after reset and if I remember are all the clock on,
you need to explain better you you write them.

Michael

>
> However this is subject for a separate patch.
>
> Thanks



-- 
| Michael Nazzareno Trimarchi                     Amarula Solutions BV |
| COO  -  Founder                                      Cruquiuskade 47 |
| +31(0)851119172                                 Amsterdam 1018 AM NL |
|                  [`as] http://www.amarulasolutions.com               |


More information about the U-Boot mailing list