]> asedeno.scripts.mit.edu Git - linux.git/commit
clk: meson: clk-pll: drop hard-coded rates from pll tables
authorJerome Brunet <jbrunet@baylibre.com>
Wed, 1 Aug 2018 14:00:53 +0000 (16:00 +0200)
committerJerome Brunet <jbrunet@baylibre.com>
Wed, 26 Sep 2018 10:02:00 +0000 (12:02 +0200)
commitdd601dbc011e4eeda9e4c8c19ffe5b2fb33223dc
tree4a3ec158d243c98e47fdf5b11a50e2bf4483f69d
parent87173557d2f6d28ba6e19f8aaf6b7f3d45d51511
clk: meson: clk-pll: drop hard-coded rates from pll tables

Putting hard-coded rates inside the parameter tables assumes that
the parent is known and will never change. That's a big assumption
we should not make.

We have everything we need to recalculate the output rate using
the parent rate and the rest of the parameters. Let's do so and
drop the rates from the tables.

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