clk: meson: meson8b: Make the CCF use the glitch-free VPU mux
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Fri, 17 Apr 2020 18:41:27 +0000 (20:41 +0200)
committerJerome Brunet <jbrunet@baylibre.com>
Wed, 29 Apr 2020 08:26:53 +0000 (10:26 +0200)
commit16afd70af5b21b6d73a03b9c36f78b9cf004a0dd
treea5f3d71ac5d846d3185682d5282def0833547a4a
parent8bb629cfb28f4dad9d47f69249366e50ae5edc25
clk: meson: meson8b: Make the CCF use the glitch-free VPU mux

The "vpu_0" or "vpu_1" clock trees should not be updated while the
clock is running. Enforce this by setting CLK_SET_RATE_GATE on the
"vpu_0" and "vpu_1" gates. This makes the CCF switch to the "vpu_1"
tree when "vpu_0" is currently active and vice versa, which is exactly
what the vendor driver does when updating the frequency of the VPU
clock.

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