diff options
Diffstat (limited to 'arch/blackfin/mach-bf537/boards/stamp.c')
-rw-r--r-- | arch/blackfin/mach-bf537/boards/stamp.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c index 119e6ea83384..9e2277e0d25c 100644 --- a/arch/blackfin/mach-bf537/boards/stamp.c +++ b/arch/blackfin/mach-bf537/boards/stamp.c | |||
@@ -487,6 +487,13 @@ static const struct ad7877_platform_data bfin_ad7877_ts_info = { | |||
487 | }; | 487 | }; |
488 | #endif | 488 | #endif |
489 | 489 | ||
490 | #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) | ||
491 | static struct bfin5xx_spi_chip spidev_chip_info = { | ||
492 | .enable_dma = 0, | ||
493 | .bits_per_word = 8, | ||
494 | }; | ||
495 | #endif | ||
496 | |||
490 | static struct spi_board_info bfin_spi_board_info[] __initdata = { | 497 | static struct spi_board_info bfin_spi_board_info[] __initdata = { |
491 | #if defined(CONFIG_MTD_M25P80) \ | 498 | #if defined(CONFIG_MTD_M25P80) \ |
492 | || defined(CONFIG_MTD_M25P80_MODULE) | 499 | || defined(CONFIG_MTD_M25P80_MODULE) |
@@ -593,6 +600,15 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
593 | .controller_data = &spi_ad7877_chip_info, | 600 | .controller_data = &spi_ad7877_chip_info, |
594 | }, | 601 | }, |
595 | #endif | 602 | #endif |
603 | #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) | ||
604 | { | ||
605 | .modalias = "spidev", | ||
606 | .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ | ||
607 | .bus_num = 0, | ||
608 | .chip_select = 1, | ||
609 | .controller_data = &spidev_chip_info, | ||
610 | }, | ||
611 | #endif | ||
596 | }; | 612 | }; |
597 | 613 | ||
598 | /* SPI controller data */ | 614 | /* SPI controller data */ |