clk: meson: meson8b: allow changing the CPU clock tree
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Thu, 15 Nov 2018 22:40:48 +0000 (23:40 +0100)
committerNeil Armstrong <narmstrong@baylibre.com>
Fri, 23 Nov 2018 14:11:58 +0000 (15:11 +0100)
commit7fc1609b0c01fccf8ab7230d548fad74ab5a870a
tree19079bf692b9c20023c7fd9f0147dbf90bd41d25
parent7dc7eeb8c0875c4bb7607509d9270ad3fd726b6b
clk: meson: meson8b: allow changing the CPU clock tree

Currently all clocks in the CPU clock tree are marked as read-only
(using the corresponding _ro_ clk_ops). This was correct since changing
the clock tree could cause the system to lock up.
Switch all clocks to their corresponding clk_ops variant which is not
read-only to allow changing the CPU clock tree since the bug which
locked up the system is now fixed (by switching the CPU clock temporary
to run off XTAL while changing the CPU clock tree).

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Reviewed-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://lkml.kernel.org/r/20181115224048.13511-7-martin.blumenstingl@googlemail.com
drivers/clk/meson/meson8b.c