Selaa lähdekoodia

Blackfin: bf537-stamp: register adau1701 codec and asoc machine driver

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Scott Jiang <scott.jiang.linux@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Lars-Peter Clausen 14 vuotta sitten
vanhempi
commit
2fba06f2b8
1 muutettua tiedostoa jossa 17 lisäystä ja 0 poistoa
  1. 17 0
      arch/blackfin/mach-bf537/boards/stamp.c

+ 17 - 0
arch/blackfin/mach-bf537/boards/stamp.c

@@ -2275,6 +2275,11 @@ static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
 		I2C_BOARD_INFO("adau1361", 0x38),
 		I2C_BOARD_INFO("adau1361", 0x38),
 	},
 	},
 #endif
 #endif
+#if defined(CONFIG_SND_SOC_ADAU1701) || defined(CONFIG_SND_SOC_ADAU1701_MODULE)
+	{
+		I2C_BOARD_INFO("adau1701", 0x34),
+	},
+#endif
 #if defined(CONFIG_AD525X_DPOT) || defined(CONFIG_AD525X_DPOT_MODULE)
 #if defined(CONFIG_AD525X_DPOT) || defined(CONFIG_AD525X_DPOT_MODULE)
 	{
 	{
 		I2C_BOARD_INFO("ad5258", 0x18),
 		I2C_BOARD_INFO("ad5258", 0x18),
@@ -2661,6 +2666,13 @@ static struct platform_device iio_gpio_trigger = {
 };
 };
 #endif
 #endif
 
 
+#if defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1701) || \
+	defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1701_MODULE)
+static struct platform_device bf5xx_adau1701_device = {
+	.name = "bfin-eval-adau1701",
+};
+#endif
+
 static struct platform_device *stamp_devices[] __initdata = {
 static struct platform_device *stamp_devices[] __initdata = {
 
 
 	&bfin_dpmc,
 	&bfin_dpmc,
@@ -2821,6 +2833,11 @@ static struct platform_device *stamp_devices[] __initdata = {
 	defined(CONFIG_IIO_GPIO_TRIGGER_MODULE)
 	defined(CONFIG_IIO_GPIO_TRIGGER_MODULE)
 	&iio_gpio_trigger,
 	&iio_gpio_trigger,
 #endif
 #endif
+
+#if defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1701) || \
+	defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1701_MODULE)
+	&bf5xx_adau1701_device,
+#endif
 };
 };
 
 
 static int __init net2272_init(void)
 static int __init net2272_init(void)