Commit Graph
1 Commits
Author SHA1 Message Date
Sascha Hauer f0948f59db clk: add a fixed factor clock
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]>
2012-05-08 14:13:25 -07:00