[PATCH 15/16] clk: sunxi-ng: Add H3 clocks
From: Jean-Francois Moine <hidden>
Date: 2016-05-18 16:27:24
Also in:
linux-clk
From: Jean-Francois Moine <hidden>
Date: 2016-05-18 16:27:24
Also in:
linux-clk
Hi Maxime, Sorry, my previous mail was sent while not finished! On Wed, 18 May 2016 16:02:00 +0200 Maxime Ripard [off-list ref] wrote:
On Fri, May 13, 2016 at 11:45:59AM +0200, Jean-Francois Moine wrote:
[snip]
quoted
quoted
+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/