Re: [PATCH v2 2/5] clk: sunxi-ng: mux: support fixed pre-dividers on multiple parents

2016-08-23 Thread Chen-Yu Tsai
On Tue, Aug 23, 2016 at 4:55 PM, Maxime Ripard wrote: > On Mon, Aug 15, 2016 at 04:13:12PM +0800, Chen-Yu Tsai wrote: >> Some clocks on the A31 have fixed pre-dividers on multiple parents. >> Add support for them. >> >> Signed-off-by: Chen-Yu Tsai

Re: [PATCH v2 2/5] clk: sunxi-ng: mux: support fixed pre-dividers on multiple parents

2016-08-23 Thread Chen-Yu Tsai
On Tue, Aug 23, 2016 at 4:55 PM, Maxime Ripard wrote: > On Mon, Aug 15, 2016 at 04:13:12PM +0800, Chen-Yu Tsai wrote: >> Some clocks on the A31 have fixed pre-dividers on multiple parents. >> Add support for them. >> >> Signed-off-by: Chen-Yu Tsai >> --- >> Changes since v1: >> >> - Add field

Re: [PATCH v2 2/5] clk: sunxi-ng: mux: support fixed pre-dividers on multiple parents

2016-08-23 Thread Maxime Ripard
On Tue, Aug 23, 2016 at 05:52:59PM +0800, Chen-Yu Tsai wrote: > >> static const char * const ahb2_parents[] = { "ahb1" , "pll-periph0" }; > >> +static const struct ccu_mux_fixed_prediv ahb2_fixed_predivs[] = { > >> + { .index = 1, .div = 2 }, > >> + { }, > >> +}; > >> > >> [...] > >> > >>

Re: [PATCH v2 2/5] clk: sunxi-ng: mux: support fixed pre-dividers on multiple parents

2016-08-23 Thread Maxime Ripard
On Tue, Aug 23, 2016 at 05:52:59PM +0800, Chen-Yu Tsai wrote: > >> static const char * const ahb2_parents[] = { "ahb1" , "pll-periph0" }; > >> +static const struct ccu_mux_fixed_prediv ahb2_fixed_predivs[] = { > >> + { .index = 1, .div = 2 }, > >> + { }, > >> +}; > >> > >> [...] > >> > >>

Re: [PATCH v2 2/5] clk: sunxi-ng: mux: support fixed pre-dividers on multiple parents

2016-08-23 Thread Maxime Ripard
On Mon, Aug 15, 2016 at 04:13:12PM +0800, Chen-Yu Tsai wrote: > Some clocks on the A31 have fixed pre-dividers on multiple parents. > Add support for them. > > Signed-off-by: Chen-Yu Tsai > --- > Changes since v1: > > - Add field for number of fixed pre-dividers. > --- >

Re: [PATCH v2 2/5] clk: sunxi-ng: mux: support fixed pre-dividers on multiple parents

2016-08-23 Thread Maxime Ripard
On Mon, Aug 15, 2016 at 04:13:12PM +0800, Chen-Yu Tsai wrote: > Some clocks on the A31 have fixed pre-dividers on multiple parents. > Add support for them. > > Signed-off-by: Chen-Yu Tsai > --- > Changes since v1: > > - Add field for number of fixed pre-dividers. > --- >

[PATCH v2 2/5] clk: sunxi-ng: mux: support fixed pre-dividers on multiple parents

2016-08-15 Thread Chen-Yu Tsai
Some clocks on the A31 have fixed pre-dividers on multiple parents. Add support for them. Signed-off-by: Chen-Yu Tsai --- Changes since v1: - Add field for number of fixed pre-dividers. --- drivers/clk/sunxi-ng/ccu-sun8i-h3.c | 9 + drivers/clk/sunxi-ng/ccu_mux.c

[PATCH v2 2/5] clk: sunxi-ng: mux: support fixed pre-dividers on multiple parents

2016-08-15 Thread Chen-Yu Tsai
Some clocks on the A31 have fixed pre-dividers on multiple parents. Add support for them. Signed-off-by: Chen-Yu Tsai --- Changes since v1: - Add field for number of fixed pre-dividers. --- drivers/clk/sunxi-ng/ccu-sun8i-h3.c | 9 + drivers/clk/sunxi-ng/ccu_mux.c | 6 --