Re: [PATCH 2/5] clk: berlin: add common clk driver for newer SoCs

2015-10-01 Thread Stephen Boyd
On 09/22, Jisheng Zhang wrote: > + > +static u8 clk_div[] = {1, 2, 4, 6, 8, 12, 1, 1}; > + > +static unsigned long berlin_clk_recalc_rate(struct clk_hw *hw, > + unsigned long parent_rate) > +{ > + u32 val, divider; > + struct berlin_clk *clk = to_berlin_c

[PATCH 2/5] clk: berlin: add common clk driver for newer SoCs

2015-09-22 Thread Jisheng Zhang
Add berlin-clk driver for Marvell SoCs newer than BG2, BG2CD, BG2Q. berlin_clk_register() is provided for registering such kind of clk. Signed-off-by: Jisheng Zhang --- drivers/clk/berlin/Makefile | 2 +- drivers/clk/berlin/clk.c| 147 drivers/c