]> git.baikalelectronics.ru Git - kernel.git/commit
clk: meson: meson8b: change references to the XTAL clock to use [fw_]name
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sun, 17 Nov 2019 13:59:25 +0000 (14:59 +0100)
committerJerome Brunet <jbrunet@baylibre.com>
Wed, 11 Dec 2019 13:06:30 +0000 (14:06 +0100)
commit620cf92b9c01783da36edb24c9e0575fd63b9787
tree210f912c71defd5bccf4f1ee607e49f7c0c4dad7
parentbba0cd3d9181ea6092f3dbcd69ee0183a504842d
clk: meson: meson8b: change references to the XTAL clock to use [fw_]name

The XTAL clock is an actual crystal which is mounted on the PCB. Thus
the meson8b clock controller driver should not provide the XTAL clock.

The meson8b clock controller driver must not use references to
the meson8b_xtal clock anymore before we can provide the XTAL clock
via OF. Replace the references to the meson8b_xtal.hw by using
clk_parent_data's .fw_name and .name = "xtal" (along with index = -1).
This makes the common clock framework use the clock provided via OF and
if that's not available it falls back to getting the clock by it's name
(which is then the clk_fixed_rate which we register in our driver).

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
drivers/clk/meson/meson8b.c