summaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf537/boards/stamp.c
diff options
context:
space:
mode:
authorGraf Yang <graf.yang@analog.com>2010-02-21 10:23:07 +0000
committerMike Frysinger <vapier@gentoo.org>2010-03-09 00:30:52 -0500
commitdf6a949b4666780969fd90a2f3ac3db3b62552d6 (patch)
tree118f59816d44d7bb0efdd0d1e4b69cb951fd157f /arch/blackfin/mach-bf537/boards/stamp.c
parentaec59c911307639c77076bdc9d9b546a4a767a73 (diff)
downloadblackbird-op-linux-df6a949b4666780969fd90a2f3ac3db3b62552d6.tar.gz
blackbird-op-linux-df6a949b4666780969fd90a2f3ac3db3b62552d6.zip
Blackfin: bf537-stamp: add example AD2S120x resources
Signed-off-by: Graf Yang <graf.yang@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.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c
index 8a138f0f0302..283cc66f0220 100644
--- a/arch/blackfin/mach-bf537/boards/stamp.c
+++ b/arch/blackfin/mach-bf537/boards/stamp.c
@@ -663,6 +663,18 @@ static struct bfin5xx_spi_chip ad2s90_spi_chip_info = {
};
#endif
+#if defined(CONFIG_AD2S120X) || defined(CONFIG_AD2S120X_MODULE)
+unsigned short ad2s120x_platform_data[] = {
+ /* used as SAMPLE and RDVEL */
+ GPIO_PF5, GPIO_PF6, 0
+};
+
+static struct bfin5xx_spi_chip ad2s120x_spi_chip_info = {
+ .enable_dma = 0,
+ .bits_per_word = 16,
+};
+#endif
+
#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
#define MMC_SPI_CARD_DETECT_INT IRQ_PF5
@@ -987,6 +999,16 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
},
#endif
+#if defined(CONFIG_AD2S120X) || defined(CONFIG_AD2S120X_MODULE)
+ {
+ .modalias = "ad2s120x",
+ .bus_num = 0,
+ .chip_select = 4, /* CS, change it for your board */
+ .platform_data = ad2s120x_platform_data,
+ .controller_data = &ad2s120x_spi_chip_info,
+ },
+#endif
+
#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
{
.modalias = "mmc_spi",
OpenPOWER on IntegriCloud