clk: meson: mpll: add round closest support
authorJerome Brunet <jbrunet@baylibre.com>
Tue, 15 May 2018 16:36:51 +0000 (18:36 +0200)
committerJerome Brunet <jbrunet@baylibre.com>
Mon, 21 May 2018 09:31:29 +0000 (11:31 +0200)
commitbae1106c37c60661a94739b3f0a52138e227d604
treeb17f5ce2fedb709c1510376d3c2a4da780d51cc7
parent72e1f2302040398dafb64bbb93abdde78c1f2267
clk: meson: mpll: add round closest support

Allow the mpll driver to round the requested rate up if
CLK_MESON_MPLL_ROUND_CLOSEST is set and it provides a rate closer to the
requested rate.

Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Martin Blumenstingl<martin.blumenstingl@googlemail.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
drivers/clk/meson/clk-mpll.c
drivers/clk/meson/clkc.h