Skip to content

Commit

Permalink
BCM2708: Added support for HiFiBerry Digi board Board initalization b…
Browse files Browse the repository at this point in the history
…y I2C

Signed-off-by: Daniel Matuschek <daniel@matuschek.net>
  • Loading branch information
Daniel Matuschek authored and popcornmix committed Jan 28, 2014
1 parent 3060a30 commit a76cc55
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions arch/arm/mach-bcm2708/bcm2708.c
Expand Up @@ -653,6 +653,21 @@ static struct platform_device snd_pcm5102a_codec_device = {
};
#endif

#if defined(CONFIG_SND_BCM2708_SOC_HIFIBERRY_DIGI) || defined(CONFIG_SND_BCM2708_SOC_HIFIBERRY_DIGI_MODULE)
static struct platform_device snd_hifiberry_digi_device = {
.name = "snd-hifiberry-digi",
.id = 0,
.num_resources = 0,
};

static struct i2c_board_info __initdata snd_wm8804_i2c_devices[] = {
{
I2C_BOARD_INFO("wm8804", 0x3b)
},
};

#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",
Expand Down Expand Up @@ -802,6 +817,11 @@ void __init bcm2708_init(void)
bcm_register_device(&snd_pcm5102a_codec_device);
#endif

#if defined(CONFIG_SND_BCM2708_SOC_HIFIBERRY_DIGI) || defined(CONFIG_SND_BCM2708_SOC_HIFIBERRY_DIGI_MODULE)
bcm_register_device(&snd_hifiberry_digi_device);
i2c_register_board_info(1, snd_wm8804_i2c_devices, ARRAY_SIZE(snd_wm8804_i2c_devices));
#endif

#if defined(CONFIG_SND_BCM2708_SOC_RPI_DAC) || defined(CONFIG_SND_BCM2708_SOC_RPI_DAC_MODULE)
bcm_register_device(&snd_rpi_dac_device);
bcm_register_device(&snd_pcm1794a_codec_device);
Expand Down

0 comments on commit a76cc55

Please sign in to comment.