Having fixed factors/dividers in hardware is a common pattern, so
add a basic clock type doing this. It basically describes a fixed
factor clock using a nominator and a denominator.
Signed-off-by: Sascha Hauer <[email protected]>
Reviewed-by: Viresh Kumar <[email protected]>
Tested-by: Shawn Guo <[email protected]>
[[email protected]: constify parent_names in static init macro]
[[email protected]: copy/paste bug from mux in static init macro]
[[email protected]: fix error handling in clk_register_fixed_factor]
[[email protected]: improve division accuracy; thanks to Saravana]
Signed-off-by: Mike Turquette <[email protected]>