ak4396 rk3188 : add ak4396 in rk3188sdk board
author邱建斌 <qjb@rock-chips.com>
Tue, 20 Aug 2013 03:29:28 +0000 (11:29 +0800)
committer邱建斌 <qjb@rock-chips.com>
Tue, 20 Aug 2013 03:29:28 +0000 (11:29 +0800)
arch/arm/mach-rk3188/board-rk3188-sdk.c

index 7e02094e6eb09cd2dd02080806c0b23ead0adf85..e2f7578ea84dc79c07c543988c0c41bc1fb013b6 100755 (executable)
@@ -140,7 +140,23 @@ struct goodix_platform_data goodix_info = {
 };
 #endif
 
+#ifdef CONFIG_SND_RK29_SOC_AK4396
+static struct rk29xx_spi_chip spi_ak4399_chip = {
+               .enable_dma = 1,
+};
+#endif
+
 static struct spi_board_info board_spi_devices[] = {
+#ifdef CONFIG_SND_RK29_SOC_AK4396
+    {
+        .modalias = "AK4396",
+        .mode = SPI_MODE_0,
+        .max_speed_hz = 3*1000*1000,
+        .bus_num = 1,
+        .chip_select = 0,
+        //.controller_data = &spi_ak4399_chip,
+    },
+#endif
 };
 
 /***********************************************************