diff options
author | Syed Rafiuddin <rafiuddin.syed@ti.com> | 2009-09-22 19:46:18 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-23 10:39:44 -0400 |
commit | 7869c0b9ed44404bbc675ef76f8ccb3be5496f39 (patch) | |
tree | b5ac5f98c8bf60df41b44f05ddcf12e5e8ae1583 /drivers/spi | |
parent | 89c05372d08f3982eeb94d1ea22a60a5eaa8cd6d (diff) |
spi: McSPI support for OMAP4
tAdd adds McSPI support for OMAP4430 SDP platform. All the base addresses
are changed between OMAP1/2/3 and OMAP4. The fields of the resource
structures are filled at runtime to have McSPI support on OMAP4.
Signed-off-by: Syed Rafiuddin <rafiuddin.syed@ti.com>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/omap2_mcspi.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/spi/omap2_mcspi.c b/drivers/spi/omap2_mcspi.c index 85b7aea73374..ba1a872b221e 100644 --- a/drivers/spi/omap2_mcspi.c +++ b/drivers/spi/omap2_mcspi.c | |||
@@ -1014,7 +1014,8 @@ static u8 __initdata spi2_txdma_id[] = { | |||
1014 | OMAP24XX_DMA_SPI2_TX1, | 1014 | OMAP24XX_DMA_SPI2_TX1, |
1015 | }; | 1015 | }; |
1016 | 1016 | ||
1017 | #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP34XX) | 1017 | #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP34XX) \ |
1018 | || defined(CONFIG_ARCH_OMAP4) | ||
1018 | static u8 __initdata spi3_rxdma_id[] = { | 1019 | static u8 __initdata spi3_rxdma_id[] = { |
1019 | OMAP24XX_DMA_SPI3_RX0, | 1020 | OMAP24XX_DMA_SPI3_RX0, |
1020 | OMAP24XX_DMA_SPI3_RX1, | 1021 | OMAP24XX_DMA_SPI3_RX1, |
@@ -1026,7 +1027,7 @@ static u8 __initdata spi3_txdma_id[] = { | |||
1026 | }; | 1027 | }; |
1027 | #endif | 1028 | #endif |
1028 | 1029 | ||
1029 | #ifdef CONFIG_ARCH_OMAP3 | 1030 | #if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_ARCH_OMAP4) |
1030 | static u8 __initdata spi4_rxdma_id[] = { | 1031 | static u8 __initdata spi4_rxdma_id[] = { |
1031 | OMAP34XX_DMA_SPI4_RX0, | 1032 | OMAP34XX_DMA_SPI4_RX0, |
1032 | }; | 1033 | }; |
@@ -1056,14 +1057,15 @@ static int __init omap2_mcspi_probe(struct platform_device *pdev) | |||
1056 | txdma_id = spi2_txdma_id; | 1057 | txdma_id = spi2_txdma_id; |
1057 | num_chipselect = 2; | 1058 | num_chipselect = 2; |
1058 | break; | 1059 | break; |
1059 | #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3) | 1060 | #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3) \ |
1061 | || defined(CONFIG_ARCH_OMAP4) | ||
1060 | case 3: | 1062 | case 3: |
1061 | rxdma_id = spi3_rxdma_id; | 1063 | rxdma_id = spi3_rxdma_id; |
1062 | txdma_id = spi3_txdma_id; | 1064 | txdma_id = spi3_txdma_id; |
1063 | num_chipselect = 2; | 1065 | num_chipselect = 2; |
1064 | break; | 1066 | break; |
1065 | #endif | 1067 | #endif |
1066 | #ifdef CONFIG_ARCH_OMAP3 | 1068 | #if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_ARCH_OMAP4) |
1067 | case 4: | 1069 | case 4: |
1068 | rxdma_id = spi4_rxdma_id; | 1070 | rxdma_id = spi4_rxdma_id; |
1069 | txdma_id = spi4_txdma_id; | 1071 | txdma_id = spi4_txdma_id; |