|
|
|
Re: spidev and atmel_spi | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
|
hi Matt,
> Is it simply a matter of creating a struct spi_board_info with
> .bus_num = 0, since
It shouldn't even be necessary to set 'bus_num' since the default is 0.
> platform_device at91rm9200_spi_device id == 0?
> and then calling spi_register_board_info?
No, define a "struct spi_board_info" array, and then (in your board
startup code) call at91_add_device_spi() and pass the array and number
of entries.
The at91_add_device_spi() handles all the pin-setup,
spi_register_board_info() and platform_device registration for you.
Also enable CONFIG_SPI_SPIDEV ("User mode SPI device driver support")
in the configuration.
Regards,
Andrew Victor
-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
[Linux ARM] [Linux ARM MSM] [Linux ARM Kernel] [Fedora ARM] [IETF Annouce] [Security] [Bugtraq] [Linux] [Linux OMAP] [Linux MIPS] [ECOS] [Asterisk Internet PBX] [Linux API]
![]() |
![]() |