diff options
author | Barry Song <barry.song@analog.com> | 2009-06-04 10:14:17 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-09-16 21:28:26 -0400 |
commit | d4b834c13940b5433d16ae3605794b3d74804348 (patch) | |
tree | 15211efb031fbf8a1d8b9b42e6bf1116e1123ec8 /arch/blackfin/mach-bf537/boards/stamp.c | |
parent | e68d1ebc30e033612bb69f949da654d72beae57d (diff) | |
download | kernel_samsung_smdk4412-d4b834c13940b5433d16ae3605794b3d74804348.zip kernel_samsung_smdk4412-d4b834c13940b5433d16ae3605794b3d74804348.tar.gz kernel_samsung_smdk4412-d4b834c13940b5433d16ae3605794b3d74804348.tar.bz2 |
Blackfin: bf537-stamp: add resources for AD1938 audio card
Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/mach-bf537/boards/stamp.c')
-rw-r--r-- | arch/blackfin/mach-bf537/boards/stamp.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c index d619313..b9da979 100644 --- a/arch/blackfin/mach-bf537/boards/stamp.c +++ b/arch/blackfin/mach-bf537/boards/stamp.c @@ -524,6 +524,15 @@ static struct bfin5xx_spi_chip ad1836_spi_chip_info = { }; #endif +#if defined(CONFIG_SND_BF5XX_SOC_AD1938) \ + || defined(CONFIG_SND_BF5XX_SOC_AD1938_MODULE) +static struct bfin5xx_spi_chip ad1938_spi_chip_info = { + .enable_dma = 0, + .bits_per_word = 8, + .cs_gpio = GPIO_PF5, +}; +#endif + #if defined(CONFIG_AD9960) || defined(CONFIG_AD9960_MODULE) static struct bfin5xx_spi_chip ad9960_spi_chip_info = { .enable_dma = 0, @@ -754,6 +763,18 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { .controller_data = &ad1836_spi_chip_info, }, #endif + +#if defined(CONFIG_SND_BF5XX_SOC_AD1938) || defined(CONFIG_SND_BF5XX_SOC_AD1938_MODULE) + { + .modalias = "ad1938-spi", + .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ + .bus_num = 0, + .chip_select = 0,/* CONFIG_SND_BLACKFIN_SPI_PFBIT */ + .controller_data = &ad1938_spi_chip_info, + .mode = SPI_MODE_3, + }, +#endif + #if defined(CONFIG_AD9960) || defined(CONFIG_AD9960_MODULE) { .modalias = "ad9960-spi", |