diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2008-02-08 12:54:09 -0500 |
---|---|---|
committer | Bryan Wu <bryan.wu@analog.com> | 2008-02-08 12:54:09 -0500 |
commit | 6e668936db12550ab5a6a758f236140101e5a644 (patch) | |
tree | 8ec66d17e3816e7007873671c5105a77bdb4a0c4 /arch/blackfin/mach-bf548 | |
parent | 8b01eaff4fdf39d23d53288fd1a3e74fef136145 (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-bf548')
-rw-r--r-- | arch/blackfin/mach-bf548/boards/ezkit.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf548/boards/ezkit.c b/arch/blackfin/mach-bf548/boards/ezkit.c index 638da39a2f34..d5330d4f79d3 100644 --- a/arch/blackfin/mach-bf548/boards/ezkit.c +++ b/arch/blackfin/mach-bf548/boards/ezkit.c | |||
@@ -420,6 +420,13 @@ static const struct ad7877_platform_data bfin_ad7877_ts_info = { | |||
420 | }; | 420 | }; |
421 | #endif | 421 | #endif |
422 | 422 | ||
423 | #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) | ||
424 | static struct bfin5xx_spi_chip spidev_chip_info = { | ||
425 | .enable_dma = 0, | ||
426 | .bits_per_word = 8, | ||
427 | }; | ||
428 | #endif | ||
429 | |||
423 | static struct spi_board_info bf54x_spi_board_info[] __initdata = { | 430 | static struct spi_board_info bf54x_spi_board_info[] __initdata = { |
424 | #if defined(CONFIG_MTD_M25P80) \ | 431 | #if defined(CONFIG_MTD_M25P80) \ |
425 | || defined(CONFIG_MTD_M25P80_MODULE) | 432 | || defined(CONFIG_MTD_M25P80_MODULE) |
@@ -445,6 +452,15 @@ static struct spi_board_info bf54x_spi_board_info[] __initdata = { | |||
445 | .controller_data = &spi_ad7877_chip_info, | 452 | .controller_data = &spi_ad7877_chip_info, |
446 | }, | 453 | }, |
447 | #endif | 454 | #endif |
455 | #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) | ||
456 | { | ||
457 | .modalias = "spidev", | ||
458 | .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ | ||
459 | .bus_num = 0, | ||
460 | .chip_select = 1, | ||
461 | .controller_data = &spidev_chip_info, | ||
462 | }, | ||
463 | #endif | ||
448 | }; | 464 | }; |
449 | 465 | ||
450 | /* SPI (0) */ | 466 | /* SPI (0) */ |