diff options
Diffstat (limited to 'arch/blackfin/mach-bf527')
-rw-r--r-- | arch/blackfin/mach-bf527/boards/ezkit.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf527/boards/ezkit.c b/arch/blackfin/mach-bf527/boards/ezkit.c index 1795aab79064..b0c17afd4b76 100644 --- a/arch/blackfin/mach-bf527/boards/ezkit.c +++ b/arch/blackfin/mach-bf527/boards/ezkit.c | |||
@@ -517,6 +517,14 @@ static struct bfin5xx_spi_chip spi_wm8731_chip_info = { | |||
517 | .bits_per_word = 16, | 517 | .bits_per_word = 16, |
518 | }; | 518 | }; |
519 | #endif | 519 | #endif |
520 | |||
521 | #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) | ||
522 | static struct bfin5xx_spi_chip spidev_chip_info = { | ||
523 | .enable_dma = 0, | ||
524 | .bits_per_word = 8, | ||
525 | }; | ||
526 | #endif | ||
527 | |||
520 | static struct spi_board_info bfin_spi_board_info[] __initdata = { | 528 | static struct spi_board_info bfin_spi_board_info[] __initdata = { |
521 | #if defined(CONFIG_MTD_M25P80) \ | 529 | #if defined(CONFIG_MTD_M25P80) \ |
522 | || defined(CONFIG_MTD_M25P80_MODULE) | 530 | || defined(CONFIG_MTD_M25P80_MODULE) |
@@ -634,6 +642,15 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
634 | .mode = SPI_MODE_0, | 642 | .mode = SPI_MODE_0, |
635 | }, | 643 | }, |
636 | #endif | 644 | #endif |
645 | #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) | ||
646 | { | ||
647 | .modalias = "spidev", | ||
648 | .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ | ||
649 | .bus_num = 0, | ||
650 | .chip_select = 1, | ||
651 | .controller_data = &spidev_chip_info, | ||
652 | }, | ||
653 | #endif | ||
637 | }; | 654 | }; |
638 | 655 | ||
639 | /* SPI controller data */ | 656 | /* SPI controller data */ |