clk: meson: pll: switch to determine_rate for the PLL ops
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Mon, 17 May 2021 20:37:24 +0000 (22:37 +0200)
committerJerome Brunet <jbrunet@baylibre.com>
Wed, 19 May 2021 13:48:12 +0000 (15:48 +0200)
commit4cbf0cd6bf4c704746b6a6c6d42a8ee327070005
treef9b93227d67f67f8f922bda641f8514cc224fe1e
parent6efb943b8616ec53a5e444193dccf1af9ad627b5
clk: meson: pll: switch to determine_rate for the PLL ops

This increases the maxmium supported frequency on 32-bit systems from
2^31 (signed long as used by clk_ops.round_rate, maximum value:
approx. 2.14GHz) to 2^32 (unsigned long as used by
clk_ops.determine_rate, maximum value: approx. 4.29GHz).
On Meson8/8b/8m2 the HDMI PLL and it's OD (post-dividers) are
capable of running at up to 2.97GHz. So switch the divider
implementation in clk-regmap to clk_ops.determine_rate to support these
higher frequencies on 32-bit systems.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20210517203724.1006254-4-martin.blumenstingl@googlemail.com
drivers/clk/meson/clk-pll.c