aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf527
diff options
context:
space:
mode:
authorMichael Hennerich <michael.hennerich@analog.com>2008-02-08 12:54:09 -0500
committerBryan Wu <bryan.wu@analog.com>2008-02-08 12:54:09 -0500
commit6e668936db12550ab5a6a758f236140101e5a644 (patch)
tree8ec66d17e3816e7007873671c5105a77bdb4a0c4 /arch/blackfin/mach-bf527
parent8b01eaff4fdf39d23d53288fd1a3e74fef136145 (diff)
[Blackfin] arch: Encourage users to use the spidev character driver: Provide platform support
- Enable kernel generic spidev driver for blackfin SPI ADC - spi_adc driver, document and test sample not synced Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'arch/blackfin/mach-bf527')
-rw-r--r--arch/blackfin/mach-bf527/boards/ezkit.c17
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)
522static struct bfin5xx_spi_chip spidev_chip_info = {
523 .enable_dma = 0,
524 .bits_per_word = 8,
525};
526#endif
527
520static struct spi_board_info bfin_spi_board_info[] __initdata = { 528static 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 */