]> git.baikalelectronics.ru Git - kernel.git/commit
clk: meson: meson8b: don't register the XTAL clock when provided via OF
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sun, 17 Nov 2019 13:59:26 +0000 (14:59 +0100)
committerJerome Brunet <jbrunet@baylibre.com>
Wed, 11 Dec 2019 13:06:31 +0000 (14:06 +0100)
commitd7c08f19965f37aa4038cba0f35d6e556ddef8b8
tree05809ee0ef52bbff0ba3934becf836cda9bb4a86
parent620cf92b9c01783da36edb24c9e0575fd63b9787
clk: meson: meson8b: don't register the XTAL clock when provided via OF

The XTAL clock is an actual crystal on the PCB. Thus the meson8b clock
driver should not register the XTAL clock - instead it should be
provided via .dts and then passed to the clock controller.

Skip the registration of the XTAL clock if a parent clock is provided
via OF. Fall back to registering the XTAL clock if this is not the case
to keep support for old .dtbs.

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