diff options
| author | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2007-02-16 07:56:11 -0500 |
|---|---|---|
| committer | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2007-02-16 08:01:40 -0500 |
| commit | 41d8ca452f523b9245704c7dd8ef290fa7b78e6b (patch) | |
| tree | 41d84a6d1a1f20e7e74893eb76bf9a2c4de5c709 /include | |
| parent | 23cebe2287474720c2eb0673581056cfb285a69f (diff) | |
[AVR32] Use per-controller spi_board_info structures
Set up one spi_board_info array per controller and pass this to
at32_add_device_spi so that it can set up any GPIO pins for chip
selects based on this information.
Extracted from a patch by David Brownell and adapted slightly.
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-avr32/arch-at32ap/board.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-avr32/arch-at32ap/board.h b/include/asm-avr32/arch-at32ap/board.h index b120ee030c86..1a7b07d436ff 100644 --- a/include/asm-avr32/arch-at32ap/board.h +++ b/include/asm-avr32/arch-at32ap/board.h | |||
| @@ -26,7 +26,9 @@ struct eth_platform_data { | |||
| 26 | struct platform_device * | 26 | struct platform_device * |
| 27 | at32_add_device_eth(unsigned int id, struct eth_platform_data *data); | 27 | at32_add_device_eth(unsigned int id, struct eth_platform_data *data); |
| 28 | 28 | ||
| 29 | struct platform_device *at32_add_device_spi(unsigned int id); | 29 | struct spi_board_info; |
| 30 | struct platform_device * | ||
| 31 | at32_add_device_spi(unsigned int id, struct spi_board_info *b, unsigned int n); | ||
| 30 | 32 | ||
| 31 | struct lcdc_platform_data { | 33 | struct lcdc_platform_data { |
| 32 | unsigned long fbmem_start; | 34 | unsigned long fbmem_start; |
