[PATCH v2 12/15] clk: sunxi-ng: Add N-K-M Factor clock

2016-06-07 Thread Maxime Ripard
Introduce support for clocks that multiply and divide using two linear multipliers and one linear divider. Signed-off-by: Maxime Ripard --- Changes from v1: - Declared the find_best function static - Fixed the set_rate function that was always writing the

[PATCH v2 12/15] clk: sunxi-ng: Add N-K-M Factor clock

2016-06-07 Thread Maxime Ripard
Introduce support for clocks that multiply and divide using two linear multipliers and one linear divider. Signed-off-by: Maxime Ripard --- Changes from v1: - Declared the find_best function static - Fixed the set_rate function that was always writing the various factors at the same