[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>
This commit is contained in:
@@ -26,7 +26,9 @@ struct eth_platform_data {
|
||||
struct platform_device *
|
||||
at32_add_device_eth(unsigned int id, struct eth_platform_data *data);
|
||||
|
||||
struct platform_device *at32_add_device_spi(unsigned int id);
|
||||
struct spi_board_info;
|
||||
struct platform_device *
|
||||
at32_add_device_spi(unsigned int id, struct spi_board_info *b, unsigned int n);
|
||||
|
||||
struct lcdc_platform_data {
|
||||
unsigned long fbmem_start;
|
||||
|
||||
Reference in New Issue
Block a user