Skip to content
Unverified Commit 2adfc688 authored by Marcin Wojtas's avatar Marcin Wojtas Committed by Mark Brown
Browse files

ASoC: kirkwood: enable Kirkwood driver for Armada 38x platforms



The audio unit of Marvell Armada38x SoC is similar to the ones comprised by
other Marvell SoCs (Kirkwood, Dove and Armada 370). Therefore KW audio
driver can be used to support it and this commit adds new compatible string
to identify Armada 38x variant.

Two new memory regions are added: first one for PLL configuration and
the second one for choosing one of audio I/O modes (I2S or S/PDIF).
For the latter purpose a new optional DT property is added ('spdif-mode').

kirkwood-i2s driver is extended by adding a new init function for Armada
38x flavor and also a routine that enables PLL output (i.e. MCLK)
configuration.

Signed-off-by: default avatarMarcin Wojtas <mw@semihalf.com>
Tested-by: default avatarStar_Automation <star@marvell.com>
Reviewed-by: default avatarNadav Haklai <nadavh@marvell.com>
Reviewed-by: default avatarLior Amsalem <alior@marvell.com>
Tested-by: default avatarLior Amsalem <alior@marvell.com>
Signed-off-by: default avatarHezi Shahmoon <hezi@marvell.com>
Reviewed-by: default avatarNeta Zur Hershkovits <neta@marvell.com>
[pali: Fix support for pre-38x SoCs]
Signed-off-by: default avatarPali Rohár <pali@kernel.org>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20220926110533.13475-1-pali@kernel.org


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent fb07a849
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment