commit | 435b7be1d812cdbbad997f5279293770dff21abb | [log] [tgz] |
---|---|---|
author | Chen-Yu Tsai <wens@csie.org> | Mon Jan 25 21:15:43 2016 +0800 |
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | Fri Jan 29 11:30:27 2016 +0100 |
tree | fd85027fb06fb90df14872f7fdb54c10d1d60563 | |
parent | cfa63688603398e8de4315cd626f81516c88a4c4 [diff] |
clk: sunxi: factors: Support custom formulas Some clocks cannot be modelled using the standard factors clk formula, such as clocks with special pre-dividers on one parent, or clocks with all power-of-two dividers. Add support for a custom .recalc callback for factors clk. Also pass the current parent index to the .get_factor and .recalc callbacks. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>