ASoC: kirkwood: enable Kirkwood driver for mvebu platforms
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 30 Jan 2014 17:14:06 +0000 (18:14 +0100)
committerMark Brown <broonie@linaro.org>
Tue, 11 Feb 2014 12:37:52 +0000 (12:37 +0000)
The audio unit found in the Armada 370 SoC is similar to the one used
in the Marvell Kirkwood and Marvell Dove SoCs. Therefore, this commit
allows the Kirkwood audio driver to be built on mvebu platforms, and
adds an additional compatible string to identify the Armada 370
variant of the audio unit.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Documentation/devicetree/bindings/sound/mvebu-audio.txt
sound/soc/kirkwood/Kconfig
sound/soc/kirkwood/kirkwood-i2s.c

index f0062c5871b4d1d525af5dac77fa85a2398a83ec..cb8c07c81ce4498e77a94003ae16bfb9ec9b2e5c 100644 (file)
@@ -5,6 +5,7 @@ Required properties:
 - compatible:
   "marvell,kirkwood-audio" for Kirkwood platforms
   "marvell,dove-audio" for Dove platforms
+  "marvell,armada370-audio" for Armada 370 platforms
 
 - reg: physical base address of the controller and length of memory mapped
   region.
index 78ed4a42ad217e904a40591afb500019ec3a017b..764a0ef6b268cb63b31255507c09c1cdba79dd55 100644 (file)
@@ -1,6 +1,6 @@
 config SND_KIRKWOOD_SOC
        tristate "SoC Audio for the Marvell Kirkwood and Dove chips"
-       depends on ARCH_KIRKWOOD || ARCH_DOVE || COMPILE_TEST
+       depends on ARCH_KIRKWOOD || ARCH_DOVE || ARCH_MVEBU || COMPILE_TEST
        help
          Say Y or M if you want to add support for codecs attached to
          the Kirkwood I2S interface. You will also need to select the
index 3920a5e8125f886e15caa6607fed9e84a32950cd..9f842222e79802e2628a826ac536a506a069d8c0 100644 (file)
@@ -633,6 +633,7 @@ static int kirkwood_i2s_dev_remove(struct platform_device *pdev)
 static struct of_device_id mvebu_audio_of_match[] = {
        { .compatible = "marvell,kirkwood-audio" },
        { .compatible = "marvell,dove-audio" },
+       { .compatible = "marvell,armada370-audio" },
        { }
 };
 MODULE_DEVICE_TABLE(of, mvebu_audio_of_match);