diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-28 15:34:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-28 15:34:01 -0400 |
commit | 604a2785a8482cad4d63202465133c720db5eda7 (patch) | |
tree | e2f510a8a54d7d4443cb52f3a0be46f527ebb779 /arch/blackfin/mach-bf537/boards/stamp.c | |
parent | 66833d5f3934a19d0988b7d0de58149bfd7a5884 (diff) | |
parent | d310fb4bb73629840430cb13cb282915e49fef4b (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/blackfin-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/blackfin-2.6:
Blackfin arch: Fix PM building on BF52x: No ROTWE on BF52x, add USBWE
Blackfin arch: sram: use 'unsigned long' for irqflags
Blackfin arch: let PCI depend on BROKEN
Blackfin arch: move include/asm-blackfin header files to arch/blackfin
Blackfin arch: fix bug - MPU crashes under stress
Blackfin arch: Fix bug - when to rmmod the L1_module, it stucks and then reboot the board.
Blackfin arch: dont actually need to muck with EMAC_SYSTAT for BF52x for demuxing
Blackfin arch: Add MTD Partitions for MTD_DATAFLASH, increase max SPI SCLK
Diffstat (limited to 'arch/blackfin/mach-bf537/boards/stamp.c')
-rw-r--r-- | arch/blackfin/mach-bf537/boards/stamp.c | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c index e93964fdb432..8482d22321f3 100644 --- a/arch/blackfin/mach-bf537/boards/stamp.c +++ b/arch/blackfin/mach-bf537/boards/stamp.c | |||
@@ -584,6 +584,30 @@ static struct bfin5xx_spi_chip spidev_chip_info = { | |||
584 | 584 | ||
585 | #if defined(CONFIG_MTD_DATAFLASH) \ | 585 | #if defined(CONFIG_MTD_DATAFLASH) \ |
586 | || defined(CONFIG_MTD_DATAFLASH_MODULE) | 586 | || defined(CONFIG_MTD_DATAFLASH_MODULE) |
587 | |||
588 | static struct mtd_partition bfin_spi_dataflash_partitions[] = { | ||
589 | { | ||
590 | .name = "bootloader(spi)", | ||
591 | .size = 0x00040000, | ||
592 | .offset = 0, | ||
593 | .mask_flags = MTD_CAP_ROM | ||
594 | }, { | ||
595 | .name = "linux kernel(spi)", | ||
596 | .size = 0xe0000, | ||
597 | .offset = MTDPART_OFS_APPEND, | ||
598 | }, { | ||
599 | .name = "file system(spi)", | ||
600 | .size = MTDPART_SIZ_FULL, | ||
601 | .offset = MTDPART_OFS_APPEND, | ||
602 | } | ||
603 | }; | ||
604 | |||
605 | static struct flash_platform_data bfin_spi_dataflash_data = { | ||
606 | .name = "SPI Dataflash", | ||
607 | .parts = bfin_spi_dataflash_partitions, | ||
608 | .nr_parts = ARRAY_SIZE(bfin_spi_dataflash_partitions), | ||
609 | }; | ||
610 | |||
587 | /* DataFlash chip */ | 611 | /* DataFlash chip */ |
588 | static struct bfin5xx_spi_chip data_flash_chip_info = { | 612 | static struct bfin5xx_spi_chip data_flash_chip_info = { |
589 | .enable_dma = 0, /* use dma transfer with this chip*/ | 613 | .enable_dma = 0, /* use dma transfer with this chip*/ |
@@ -609,9 +633,10 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
609 | || defined(CONFIG_MTD_DATAFLASH_MODULE) | 633 | || defined(CONFIG_MTD_DATAFLASH_MODULE) |
610 | { /* DataFlash chip */ | 634 | { /* DataFlash chip */ |
611 | .modalias = "mtd_dataflash", | 635 | .modalias = "mtd_dataflash", |
612 | .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */ | 636 | .max_speed_hz = 33250000, /* max spi clock (SCK) speed in HZ */ |
613 | .bus_num = 0, /* Framework bus number */ | 637 | .bus_num = 0, /* Framework bus number */ |
614 | .chip_select = 1, /* Framework chip select. On STAMP537 it is SPISSEL1*/ | 638 | .chip_select = 1, /* Framework chip select. On STAMP537 it is SPISSEL1*/ |
639 | .platform_data = &bfin_spi_dataflash_data, | ||
615 | .controller_data = &data_flash_chip_info, | 640 | .controller_data = &data_flash_chip_info, |
616 | .mode = SPI_MODE_3, | 641 | .mode = SPI_MODE_3, |
617 | }, | 642 | }, |