hi Ivan,
> In such a case it should have
>
> static struct spi_board_info dk_spi_devices[] = {
> { /* DataFlash chip */
> // .modalias = "mtd_dataflash",
> .modalias = "at91_dataflash",
> .chip_select = 0,
> .max_speed_hz = 15 * 1000 * 1000,
> },
Makes no difference for the legacy SPI drivers. If they are used, the
only field in this structure which is checked is "chip_select" so
at91_add_device_spi() can configure the pin (GPIO vs A_periph).
What is important is what SPI_DEVNAME is set to in at91rm9200_devices.c.
#if defined(CONFIG_AT91_SPI) || defined(CONFIG_AT91_SPI_MODULE)
/* legacy SPI driver */
#define SPI_DEVNAME "at91_spi"
#elif defined(CONFIG_SPI_AT91) || defined(CONFIG_SPI_AT91_MODULE)
/* SPI bitbanging driver */
#define SPI_DEVNAME "at91_spi"
#elif defined(CONFIG_SPI_ATMEL) || defined(CONFIG_SPI_ATMEL_MODULE)
/* new SPI driver */
#define SPI_DEVNAME "atmel_spi"
And that depends on what SPI driver(s) you have enabled in the
configuration.
Changes since 2.6.19.....
at91_dataflash.c:
- device->flags = MTD_CAP_NORFLASH;
+ device->flags = MTD_WRITEABLE;
at91_spi.c:
asm/arch/at91rm9200_pdc.h replaced with linux/atmel_pdc.h
AT91_PDC_* definitions replaced with ATMEL_PDC_*
Regards,
Andrew Victor
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
spi-devel-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general