diff options
author | Yi Li <yi.li@analog.com> | 2009-06-03 05:46:22 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-09-16 21:28:24 -0400 |
commit | e68d1ebc30e033612bb69f949da654d72beae57d (patch) | |
tree | eafce86830631909cb9de7cbfdb21873634aa5ac | |
parent | f39d56ec469a9ade221ceeb85a37b051374f616b (diff) |
Blackfin: bf537-stamp: declare SPI IRQ resources
Signed-off-by: Yi Li <yi.li@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r-- | arch/blackfin/include/asm/bfin5xx_spi.h | 1 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/stamp.c | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/bfin5xx_spi.h b/arch/blackfin/include/asm/bfin5xx_spi.h index aaeb4df10d57..c281c6328276 100644 --- a/arch/blackfin/include/asm/bfin5xx_spi.h +++ b/arch/blackfin/include/asm/bfin5xx_spi.h | |||
@@ -127,6 +127,7 @@ struct bfin5xx_spi_chip { | |||
127 | u32 cs_gpio; | 127 | u32 cs_gpio; |
128 | /* Value to send if no TX value is supplied, usually 0x0 or 0xFFFF */ | 128 | /* Value to send if no TX value is supplied, usually 0x0 or 0xFFFF */ |
129 | u16 idle_tx_val; | 129 | u16 idle_tx_val; |
130 | u8 pio_interrupt; /* Enable spi data irq */ | ||
130 | }; | 131 | }; |
131 | 132 | ||
132 | #endif /* _SPI_CHANNEL_H_ */ | 133 | #endif /* _SPI_CHANNEL_H_ */ |
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c index b8e8c92f6b9c..d619313b1a71 100644 --- a/arch/blackfin/mach-bf537/boards/stamp.c +++ b/arch/blackfin/mach-bf537/boards/stamp.c | |||
@@ -555,6 +555,7 @@ static struct mmc_spi_platform_data bfin_mmc_spi_pdata = { | |||
555 | static struct bfin5xx_spi_chip mmc_spi_chip_info = { | 555 | static struct bfin5xx_spi_chip mmc_spi_chip_info = { |
556 | .enable_dma = 0, | 556 | .enable_dma = 0, |
557 | .bits_per_word = 8, | 557 | .bits_per_word = 8, |
558 | .pio_interrupt = 0, | ||
558 | }; | 559 | }; |
559 | #endif | 560 | #endif |
560 | 561 | ||
@@ -864,6 +865,11 @@ static struct resource bfin_spi0_resource[] = { | |||
864 | [1] = { | 865 | [1] = { |
865 | .start = CH_SPI, | 866 | .start = CH_SPI, |
866 | .end = CH_SPI, | 867 | .end = CH_SPI, |
868 | .flags = IORESOURCE_DMA, | ||
869 | }, | ||
870 | [2] = { | ||
871 | .start = IRQ_SPI, | ||
872 | .end = IRQ_SPI, | ||
867 | .flags = IORESOURCE_IRQ, | 873 | .flags = IORESOURCE_IRQ, |
868 | }, | 874 | }, |
869 | }; | 875 | }; |