clk: meson: axg_audio: add sm1 support
authorJerome Brunet <jbrunet@baylibre.com>
Wed, 2 Oct 2019 09:15:29 +0000 (11:15 +0200)
committerJerome Brunet <jbrunet@baylibre.com>
Tue, 8 Oct 2019 07:29:23 +0000 (09:29 +0200)
commitbe4fe445a6d5a6b15676912cff3dd0437d55f1e2
tree66ec142d4d652a4f86e2bcccac3f0d8295ac6176
parentcf52db456fd02dc7a145a4f181c8490a1dfa26d9
clk: meson: axg_audio: add sm1 support

Add sm1 support the axg audio clock controllers. This new version is
indeed derived from the previous generation, as always, adding a few
new clocks to the mix.

The number of gates now exceeds 32 and do not fit in a single register.
Unfortunately, designers chose to introduce the new gate register
immediately after the original one, at the beginning of the register
space, shifting all the master clock register offsets.

The sm1 also introduce a few mux and divider on the top clock path,
possibly to lower the peripheral clocks of the audio blocks if
necessary.

Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
drivers/clk/meson/axg-audio.c
drivers/clk/meson/axg-audio.h