From: 邱建斌 Date: Tue, 20 Aug 2013 03:29:28 +0000 (+0800) Subject: ak4396 rk3188 : add ak4396 in rk3188sdk board X-Git-Tag: firefly_0821_release~6717 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=595c933abb6a47115421ae1153af089b78ea7c99;p=firefly-linux-kernel-4.4.55.git ak4396 rk3188 : add ak4396 in rk3188sdk board --- 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 }; /***********************************************************