diff options
author | Daniel Matuschek <info@crazy-audio.com> | 2014-08-04 11:09:58 +0200 |
---|---|---|
committer | popcornmix <popcornmix@gmail.com> | 2015-05-18 14:11:16 +0100 |
commit | 9735204243ea187e01ffd1a63170b6b2f5d5d696 (patch) | |
tree | a2fdea8f2c2f599e26bb39b86385b1617f8c2196 /arch/arm/mach-bcm2708/bcm2708.c | |
parent | 6bd1b0b2dec7f654018bf6b81580a8419c172008 (diff) | |
download | linux-9735204243ea187e01ffd1a63170b6b2f5d5d696.tar.gz |
Added driver for HiFiBerry Amp amplifier add-on board
The driver contains a low-level hardware driver for the TAS5713 and the
drivers for the Raspberry Pi I2S subsystem.
Diffstat (limited to 'arch/arm/mach-bcm2708/bcm2708.c')
-rw-r--r-- | arch/arm/mach-bcm2708/bcm2708.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/mach-bcm2708/bcm2708.c b/arch/arm/mach-bcm2708/bcm2708.c index 5f7df9e64911..66bc839017e3 100644 --- a/arch/arm/mach-bcm2708/bcm2708.c +++ b/arch/arm/mach-bcm2708/bcm2708.c @@ -678,6 +678,20 @@ static struct i2c_board_info __initdata snd_wm8804_i2c_devices[] = { #endif +#if defined(CONFIG_SND_BCM2708_SOC_HIFIBERRY_AMP) || defined(CONFIG_SND_BCM2708_SOC_HIFIBERRY_AMP_MODULE) +static struct platform_device snd_hifiberry_amp_device = { + .name = "snd-hifiberry-amp", + .id = 0, + .num_resources = 0, +}; + +static struct i2c_board_info __initdata snd_tas5713_i2c_devices[] = { + { + I2C_BOARD_INFO("tas5713", 0x1b) + }, +}; +#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", @@ -876,6 +890,11 @@ void __init bcm2708_init(void) i2c_register_board_info_dt(1, snd_wm8804_i2c_devices, ARRAY_SIZE(snd_wm8804_i2c_devices)); #endif +#if defined(CONFIG_SND_BCM2708_SOC_HIFIBERRY_AMP) || defined(CONFIG_SND_BCM2708_SOC_HIFIBERRY_AMP_MODULE) + bcm_register_device_dt(&snd_hifiberry_amp_device); + i2c_register_board_info_dt(1, snd_tas5713_i2c_devices, ARRAY_SIZE(snd_tas5713_i2c_devices)); +#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); |