Re: [PATCH v2 1/2] clk: meson: mpll: add round closest support

From: Martin Blumenstingl
Date: Mon May 21 2018 - 04:23:55 EST


On Tue, May 15, 2018 at 6:36 PM, Jerome Brunet <jbrunet@xxxxxxxxxxxx> wrote:
> 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.
>
> Signed-off-by: Jerome Brunet <jbrunet@xxxxxxxxxxxx>
Acked-by: Martin Blumenstingl<martin.blumenstingl@xxxxxxxxxxxxxx>


I gave it a quick spin on Odroid-C1 (which uses an RGMII Ethernet PHY
and the RGMII TX clock is supplied by MPLL2). the clock tree looks
fine and Ethernet is still working:
mpll2_div 1 1 0 249999701
0 0
mpll2 1 1 0 249999701
0 0
c9410000.ethernet#m250_sel 1 1 0
249999701 0 0
c9410000.ethernet#m250_div 1 1 0
249999701 0 0
c9410000.ethernet#fixed_div2 1 1
0 124999850 0 0
c9410000.ethernet#rgmii_tx_en 1 1
0 124999850 0 0