[PATCH 15/16] clk: sunxi-ng: Add H3 clocks
Jean-Francois Moine
moinejf at free.fr
Wed May 18 09:27:24 PDT 2016
Hi Maxime,
Sorry, my previous mail was sent while not finished!
On Wed, 18 May 2016 16:02:00 +0200
Maxime Ripard <maxime.ripard at free-electrons.com> wrote:
> On Fri, May 13, 2016 at 11:45:59AM +0200, Jean-Francois Moine wrote:
[snip]
> > > +static const char * const nand_parents[] = { "osc24M", "pll-periph0",
> > > + "pll-periph1" };
> > > +static SUNXI_CCU_MP_WITH_MUX_GATE(nand_clk, "nand", nand_parents, 0x080,
> > > + 0, 4, /* M */
> > > + 16, 2, /* P */
> > > + 24, 2, /* mux */
> > > + BIT(31), /* gate */
> > > + 0);
> >
> > The mux width is 2, meaning there may be 4 parents. Then, there may be
> > an access out of the parent array (and same for mmcx and spix).
>
> The mux relies on the number of parents registered in the clock
> framework, which is 3 in this case, so that won't happen.
>
> Or am I missing what you're saying?
Sorry, at this time, I did not look yet at the macros.
There is no problem here.
--
Ken ar c'hentañ | ** Breizh ha Linux atav! **
Jef | http://moinejf.free.fr/
More information about the linux-arm-kernel
mailing list