clk: meson: add sclk-ws driver
authorJerome Brunet <jbrunet@baylibre.com>
Wed, 29 Jul 2020 15:43:57 +0000 (17:43 +0200)
committerJerome Brunet <jbrunet@baylibre.com>
Mon, 17 Aug 2020 13:58:02 +0000 (15:58 +0200)
commit7b70689b07c1d336a5ad6906927aa413619029bd
treea5d91a61977290d5d6c78946c7d0b45a29b88994
parent9123e3a74ec7b934a4a099e98af6a61c2f80bbf5
clk: meson: add sclk-ws driver

This is yet another simple but odd driver for the audio block of the g12a
and sm1 SoC families.

For TDMOUT's sclk to be properly inverted, bit 29 of
AUDIO_CLK_TDMOUT_x_CTRL should be the inverse of bit 28.
IOW bit28 == !bit29 at all times

This setting is automatically applied on axg and the manual setting was
added on g12a.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20200729154359.1983085-2-jbrunet@baylibre.com
drivers/clk/meson/clk-phase.c
drivers/clk/meson/clk-phase.h