clk: bcm2835: add a round up ability to the clock divisor
authorRemi Pommarel <repk@triplefau.lt>
Sun, 6 Dec 2015 16:22:46 +0000 (17:22 +0100)
committerMichael Turquette <mturquette@baylibre.com>
Fri, 25 Dec 2015 04:38:06 +0000 (20:38 -0800)
commit9c95b32ca09364e4687b72c4e17b78dc1c420026
tree2bed5fd0556a5023585d0a9c58006ba78edff4bd
parent5e63dcc74b3066659ea53aeefbee1fc1d79f4b6f
clk: bcm2835: add a round up ability to the clock divisor

Make bcm2835_clock_choose_div to optionally round up the chosen MASH divisor
so that the resulting average rate will not be higher than the requested one.

Signed-off-by: Remi Pommarel <repk@triplefau.lt>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
drivers/clk/bcm/clk-bcm2835.c