Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188528
b: refs/heads/master
c: 848c51c
h: refs/heads/master
v: v3
  • Loading branch information
Graf Yang authored and Mike Frysinger committed Mar 9, 2010
1 parent b8fc511 commit 19f95cf
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ae4a8c1903e5d0ec19dcb257ec922b888941abba
refs/heads/master: 848c51ccee5c4d51b1dc1a029508cfbb73f8c260
28 changes: 28 additions & 0 deletions trunk/arch/blackfin/mach-bf537/boards/stamp.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,23 @@ static struct bfin5xx_spi_chip ad2s120x_spi_chip_info = {
};
#endif

#if defined(CONFIG_AD2S1210) || defined(CONFIG_AD2S1210_MODULE)
unsigned short ad2s1210_platform_data[] = {
/* use as SAMPLE, A0, A1 */
GPIO_PF7, GPIO_PF8, GPIO_PF9,
# if defined(CONFIG_AD2S1210_GPIO_INPUT) || defined(CONFIG_AD2S1210_GPIO_OUTPUT)
/* the RES0 and RES1 pins */
GPIO_PF4, GPIO_PF5,
# endif
0,
};

static struct bfin5xx_spi_chip ad2s1210_spi_chip_info = {
.enable_dma = 0,
.bits_per_word = 8,
};
#endif

#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
#define MMC_SPI_CARD_DETECT_INT IRQ_PF5

Expand Down Expand Up @@ -1010,6 +1027,17 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
},
#endif

#if defined(CONFIG_AD2S1210) || defined(CONFIG_AD2S1210_MODULE)
{
.modalias = "ad2s1210",
.max_speed_hz = 8192000,
.bus_num = 0,
.chip_select = 4, /* CS, change it for your board */
.platform_data = ad2s1210_platform_data,
.controller_data = &ad2s1210_spi_chip_info,
},
#endif

#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
{
.modalias = "mmc_spi",
Expand Down

0 comments on commit 19f95cf

Please sign in to comment.