aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin
diff options
context:
space:
mode:
authorBarry Song <barry.song@analog.com>2009-06-04 06:14:17 -0400
committerMike Frysinger <vapier@gentoo.org>2009-09-16 21:28:26 -0400
commitd4b834c13940b5433d16ae3605794b3d74804348 (patch)
tree15211efb031fbf8a1d8b9b42e6bf1116e1123ec8 /arch/blackfin
parente68d1ebc30e033612bb69f949da654d72beae57d (diff)
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')
-rw-r--r--arch/blackfin/mach-bf537/boards/stamp.c21
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 d619313b1a71..b9da9790a444 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 = {
524}; 524};
525#endif 525#endif
526 526
527#if defined(CONFIG_SND_BF5XX_SOC_AD1938) \
528 || defined(CONFIG_SND_BF5XX_SOC_AD1938_MODULE)
529static struct bfin5xx_spi_chip ad1938_spi_chip_info = {
530 .enable_dma = 0,
531 .bits_per_word = 8,
532 .cs_gpio = GPIO_PF5,
533};
534#endif
535
527#if defined(CONFIG_AD9960) || defined(CONFIG_AD9960_MODULE) 536#if defined(CONFIG_AD9960) || defined(CONFIG_AD9960_MODULE)
528static struct bfin5xx_spi_chip ad9960_spi_chip_info = { 537static struct bfin5xx_spi_chip ad9960_spi_chip_info = {
529 .enable_dma = 0, 538 .enable_dma = 0,
@@ -754,6 +763,18 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
754 .controller_data = &ad1836_spi_chip_info, 763 .controller_data = &ad1836_spi_chip_info,
755 }, 764 },
756#endif 765#endif
766
767#if defined(CONFIG_SND_BF5XX_SOC_AD1938) || defined(CONFIG_SND_BF5XX_SOC_AD1938_MODULE)
768 {
769 .modalias = "ad1938-spi",
770 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
771 .bus_num = 0,
772 .chip_select = 0,/* CONFIG_SND_BLACKFIN_SPI_PFBIT */
773 .controller_data = &ad1938_spi_chip_info,
774 .mode = SPI_MODE_3,
775 },
776#endif
777
757#if defined(CONFIG_AD9960) || defined(CONFIG_AD9960_MODULE) 778#if defined(CONFIG_AD9960) || defined(CONFIG_AD9960_MODULE)
758 { 779 {
759 .modalias = "ad9960-spi", 780 .modalias = "ad9960-spi",