diff options
author | Graf Yang <graf.yang@analog.com> | 2010-02-26 06:49:52 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-03-09 00:30:53 -0500 |
commit | 848c51ccee5c4d51b1dc1a029508cfbb73f8c260 (patch) | |
tree | bacfff6e0a18c0d675e245c594f345dbb624d6ef /arch | |
parent | ae4a8c1903e5d0ec19dcb257ec922b888941abba (diff) |
Blackfin: bf537-stamp: add example AD2S1210 IIO resources
Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/blackfin/mach-bf537/boards/stamp.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c index 4aec6c06f0fe..772b7bab0a9b 100644 --- a/arch/blackfin/mach-bf537/boards/stamp.c +++ b/arch/blackfin/mach-bf537/boards/stamp.c | |||
@@ -675,6 +675,23 @@ static struct bfin5xx_spi_chip ad2s120x_spi_chip_info = { | |||
675 | }; | 675 | }; |
676 | #endif | 676 | #endif |
677 | 677 | ||
678 | #if defined(CONFIG_AD2S1210) || defined(CONFIG_AD2S1210_MODULE) | ||
679 | unsigned short ad2s1210_platform_data[] = { | ||
680 | /* use as SAMPLE, A0, A1 */ | ||
681 | GPIO_PF7, GPIO_PF8, GPIO_PF9, | ||
682 | # if defined(CONFIG_AD2S1210_GPIO_INPUT) || defined(CONFIG_AD2S1210_GPIO_OUTPUT) | ||
683 | /* the RES0 and RES1 pins */ | ||
684 | GPIO_PF4, GPIO_PF5, | ||
685 | # endif | ||
686 | 0, | ||
687 | }; | ||
688 | |||
689 | static struct bfin5xx_spi_chip ad2s1210_spi_chip_info = { | ||
690 | .enable_dma = 0, | ||
691 | .bits_per_word = 8, | ||
692 | }; | ||
693 | #endif | ||
694 | |||
678 | #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) | 695 | #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) |
679 | #define MMC_SPI_CARD_DETECT_INT IRQ_PF5 | 696 | #define MMC_SPI_CARD_DETECT_INT IRQ_PF5 |
680 | 697 | ||
@@ -1010,6 +1027,17 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
1010 | }, | 1027 | }, |
1011 | #endif | 1028 | #endif |
1012 | 1029 | ||
1030 | #if defined(CONFIG_AD2S1210) || defined(CONFIG_AD2S1210_MODULE) | ||
1031 | { | ||
1032 | .modalias = "ad2s1210", | ||
1033 | .max_speed_hz = 8192000, | ||
1034 | .bus_num = 0, | ||
1035 | .chip_select = 4, /* CS, change it for your board */ | ||
1036 | .platform_data = ad2s1210_platform_data, | ||
1037 | .controller_data = &ad2s1210_spi_chip_info, | ||
1038 | }, | ||
1039 | #endif | ||
1040 | |||
1013 | #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) | 1041 | #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) |
1014 | { | 1042 | { |
1015 | .modalias = "mmc_spi", | 1043 | .modalias = "mmc_spi", |