summaryrefslogtreecommitdiff
path: root/arch/arm/mach-bcm2708
diff options
context:
space:
mode:
authorFlorian Meier <florian.meier@koalo.de>2013-11-22 19:21:34 +0100
committerpopcornmix <popcornmix@gmail.com>2015-05-18 14:10:55 +0100
commitb394d1eb28ff333ea86efd9cf1be9b43756da9a7 (patch)
tree3701efad0af0a173c82c25b417ae8422849e1351 /arch/arm/mach-bcm2708
parent94196ac3cadf5daa0ee5e535502377e2af17d25f (diff)
downloadlinux-b394d1eb28ff333ea86efd9cf1be9b43756da9a7.tar.gz
BCM2708: Add HifiBerry DAC to board file
This adds the initalization of the HifiBerry DAC to the mach-bcm2708 board file. 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 7f4ebf48d65d..94ce8fcf7d18 100644
--- a/arch/arm/mach-bcm2708/bcm2708.c
+++ b/arch/arm/mach-bcm2708/bcm2708.c
@@ -635,6 +635,20 @@ static struct platform_device bcm2708_i2s_device = {
};
#endif
+#if defined(CONFIG_SND_BCM2708_SOC_HIFIBERRY_DAC) || defined(CONFIG_SND_BCM2708_SOC_HIFIBERRY_DAC_MODULE)
+static struct platform_device snd_hifiberry_dac_device = {
+ .name = "snd-hifiberry-dac",
+ .id = 0,
+ .num_resources = 0,
+};
+
+static struct platform_device snd_pcm5102a_codec_device = {
+ .name = "pcm5102a-codec",
+ .id = -1,
+ .num_resources = 0,
+};
+#endif
+
int __init bcm_register_device(struct platform_device *pdev)
{
int ret;
@@ -788,6 +802,11 @@ void __init bcm2708_init(void)
bcm_register_device_dt(&bcm2708_i2s_device);
#endif
+#if defined(CONFIG_SND_BCM2708_SOC_HIFIBERRY_DAC) || defined(CONFIG_SND_BCM2708_SOC_HIFIBERRY_DAC_MODULE)
+ bcm_register_device_dt(&snd_hifiberry_dac_device);
+ bcm_register_device_dt(&snd_pcm5102a_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);