clk: divider: Add round to closest divider

In some cases, we want to be able to round the divider to the closest one,
instead than rounding up.

This patch adds a new CLK_DIVIDER_ROUND_CLOSEST flag to specify the divider
has to round to closest div, keeping rounding up as de default behaviour.

Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
This commit is contained in:
Maxime COQUELIN 2014-01-29 17:24:07 +01:00 • committed by Mike Turquette
commit 774b514390
2 changed files with 70 additions and 2 deletions