From 595c933abb6a47115421ae1153af089b78ea7c99 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=82=B1=E5=BB=BA=E6=96=8C?= Date: Tue, 20 Aug 2013 11:29:28 +0800 Subject: [PATCH] ak4396 rk3188 : add ak4396 in rk3188sdk board --- arch/arm/mach-rk3188/board-rk3188-sdk.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/mach-rk3188/board-rk3188-sdk.c b/arch/arm/mach-rk3188/board-rk3188-sdk.c index 7e02094e6eb0..e2f7578ea84d 100755 --- a/arch/arm/mach-rk3188/board-rk3188-sdk.c +++ b/arch/arm/mach-rk3188/board-rk3188-sdk.c @@ -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 }; /*********************************************************** -- 2.34.1