summaryrefslogtreecommitdiff
path: root/arch/arm/mach-bcm2708
diff options
context:
space:
mode:
authorFlorian Meier <florian.meier@koalo.de>2013-12-06 20:50:28 +0100
committerpopcornmix <popcornmix@gmail.com>2015-05-18 14:10:56 +0100
commitd78be61ea3dae2c67f83326ef0db5d524fb94738 (patch)
tree5b4c9fd252f0eab5f188204dd7996418e179ad59 /arch/arm/mach-bcm2708
parentb394d1eb28ff333ea86efd9cf1be9b43756da9a7 (diff)
downloadlinux-d78be61ea3dae2c67f83326ef0db5d524fb94738.tar.gz
ASoC: BCM2708: Add support for RPi-DAC
This adds a machine driver for the RPi-DAC. Signed-off-by: Florian Meier <florian.meier@koalo.de>
Diffstat (limited to 'arch/arm/mach-bcm2708')
-rw-r--r--arch/arm/mach-bcm2708/bcm2708.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/mach-bcm2708/bcm2708.c b/arch/arm/mach-bcm2708/bcm2708.c
index 94ce8fcf7d18..fb955755b943 100644
--- a/arch/arm/mach-bcm2708/bcm2708.c
+++ b/arch/arm/mach-bcm2708/bcm2708.c
@@ -649,6 +649,20 @@ static struct platform_device snd_pcm5102a_codec_device = {
};
#endif
+#if defined(CONFIG_SND_BCM2708_SOC_RPI_DAC) || defined(CONFIG_SND_BCM2708_SOC_RPI_DAC_MODULE)
+static struct platform_device snd_rpi_dac_device = {
+ .name = "snd-rpi-dac",
+ .id = 0,
+ .num_resources = 0,
+};
+
+static struct platform_device snd_pcm1794a_codec_device = {
+ .name = "pcm1794a-codec",
+ .id = -1,
+ .num_resources = 0,
+};
+#endif
+
int __init bcm_register_device(struct platform_device *pdev)
{
int ret;
@@ -807,6 +821,11 @@ void __init bcm2708_init(void)
bcm_register_device_dt(&snd_pcm5102a_codec_device);
#endif
+#if defined(CONFIG_SND_BCM2708_SOC_RPI_DAC) || defined(CONFIG_SND_BCM2708_SOC_RPI_DAC_MODULE)
+ bcm_register_device_dt(&snd_rpi_dac_device);
+ bcm_register_device_dt(&snd_pcm1794a_codec_device);
+#endif
+
for (i = 0; i < ARRAY_SIZE(amba_devs); i++) {
struct amba_device *d = amba_devs[i];
amba_device_register(d, &iomem_resource);