diff options
author | Graf Yang <graf.yang@analog.com> | 2010-02-10 02:15:59 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-03-09 00:30:52 -0500 |
commit | f5f9531c7e588ee62e3aeddb14613ea80e7c2ca2 (patch) | |
tree | 216e7424e2d60783eadb7870d7aa8df0f4afde88 | |
parent | f32792d045e1bbd86c0af0a28a46ae87af1ae100 (diff) |
Blackfin: bf537-stamp: add example AD2S90 resources
Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r-- | arch/blackfin/mach-bf537/boards/stamp.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c index 845629260290..4a09ce90ca4b 100644 --- a/arch/blackfin/mach-bf537/boards/stamp.c +++ b/arch/blackfin/mach-bf537/boards/stamp.c | |||
@@ -653,6 +653,13 @@ static struct ad714x_platform_data ad7142_i2c_platform_data = { | |||
653 | }; | 653 | }; |
654 | #endif | 654 | #endif |
655 | 655 | ||
656 | #if defined(CONFIG_AD2S90) || defined(CONFIG_AD2S90_MODULE) | ||
657 | static struct bfin5xx_spi_chip ad2s90_spi_chip_info = { | ||
658 | .enable_dma = 0, | ||
659 | .bits_per_word = 16, | ||
660 | }; | ||
661 | #endif | ||
662 | |||
656 | #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) | 663 | #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) |
657 | #define MMC_SPI_CARD_DETECT_INT IRQ_PF5 | 664 | #define MMC_SPI_CARD_DETECT_INT IRQ_PF5 |
658 | 665 | ||
@@ -967,6 +974,16 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
967 | }, | 974 | }, |
968 | #endif | 975 | #endif |
969 | 976 | ||
977 | #if defined(CONFIG_AD2S90) || defined(CONFIG_AD2S90_MODULE) | ||
978 | { | ||
979 | .modalias = "ad2s90", | ||
980 | .bus_num = 0, | ||
981 | .chip_select = 3, /* change it for your board */ | ||
982 | .platform_data = NULL, | ||
983 | .controller_data = &ad2s90_spi_chip_info, | ||
984 | }, | ||
985 | #endif | ||
986 | |||
970 | #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) | 987 | #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) |
971 | { | 988 | { |
972 | .modalias = "mmc_spi", | 989 | .modalias = "mmc_spi", |