clk: meson: add ROUND_CLOSEST to the pll driver
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 19 Feb 2018 11:21:41 +0000 (12:21 +0100)
committerNeil Armstrong <narmstrong@baylibre.com>
Tue, 13 Mar 2018 09:09:49 +0000 (10:09 +0100)
commit0a1be867b92a5afb93bce62e12ef76b7c2b777fd
treeeec860f0aa566ddee431d99b07149c2c65d64ef5
parentc77de0e5c95a249fd2d4105dbc619f436ec96345
clk: meson: add ROUND_CLOSEST to the pll driver

Provide an option for the pll driver to round to the rate closest to the
requested rate, instead of systematically rounding down.

This may allow the provided rate to be closer to the requested rate when
rounding up is not an issue

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
drivers/clk/meson/clk-pll.c
drivers/clk/meson/clkc.h