diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2008-04-23 20:46:19 -0400 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-04-23 20:46:19 -0400 |
commit | 8e9d5c7daff8b74bf3be62cfe0ba48b5af1fa12f (patch) | |
tree | 57ee39f77f08cdda38fe655e4853f1b3679b9f3d /arch | |
parent | 5f004c2009ef95212349f7c7d87e8ff829d15c31 (diff) |
[Blackfin] arch: Add platform support for MTD DATAFLASH
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/blackfin/mach-bf537/boards/stamp.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c index e95478252c87..d4cbcb8774e7 100644 --- a/arch/blackfin/mach-bf537/boards/stamp.c +++ b/arch/blackfin/mach-bf537/boards/stamp.c | |||
@@ -503,6 +503,15 @@ static struct bfin5xx_spi_chip spidev_chip_info = { | |||
503 | }; | 503 | }; |
504 | #endif | 504 | #endif |
505 | 505 | ||
506 | #if defined(CONFIG_MTD_DATAFLASH) \ | ||
507 | || defined(CONFIG_MTD_DATAFLASH_MODULE) | ||
508 | /* DataFlash chip */ | ||
509 | static struct bfin5xx_spi_chip data_flash_chip_info = { | ||
510 | .enable_dma = 0, /* use dma transfer with this chip*/ | ||
511 | .bits_per_word = 8, | ||
512 | }; | ||
513 | #endif | ||
514 | |||
506 | static struct spi_board_info bfin_spi_board_info[] __initdata = { | 515 | static struct spi_board_info bfin_spi_board_info[] __initdata = { |
507 | #if defined(CONFIG_MTD_M25P80) \ | 516 | #if defined(CONFIG_MTD_M25P80) \ |
508 | || defined(CONFIG_MTD_M25P80_MODULE) | 517 | || defined(CONFIG_MTD_M25P80_MODULE) |
@@ -517,7 +526,17 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
517 | .mode = SPI_MODE_3, | 526 | .mode = SPI_MODE_3, |
518 | }, | 527 | }, |
519 | #endif | 528 | #endif |
520 | 529 | #if defined(CONFIG_MTD_DATAFLASH) \ | |
530 | || defined(CONFIG_MTD_DATAFLASH_MODULE) | ||
531 | { /* DataFlash chip */ | ||
532 | .modalias = "mtd_dataflash", | ||
533 | .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */ | ||
534 | .bus_num = 0, /* Framework bus number */ | ||
535 | .chip_select = 1, /* Framework chip select. On STAMP537 it is SPISSEL1*/ | ||
536 | .controller_data = &data_flash_chip_info, | ||
537 | .mode = SPI_MODE_3, | ||
538 | }, | ||
539 | #endif | ||
521 | #if defined(CONFIG_SPI_ADC_BF533) \ | 540 | #if defined(CONFIG_SPI_ADC_BF533) \ |
522 | || defined(CONFIG_SPI_ADC_BF533_MODULE) | 541 | || defined(CONFIG_SPI_ADC_BF533_MODULE) |
523 | { | 542 | { |