Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83495
b: refs/heads/master
c: ccc7bae
h: refs/heads/master
i:
  83493: f4a7bb0
  83491: af679be
  83487: 6c5945e
v: v3
  • Loading branch information
Girish authored and Linus Torvalds committed Feb 6, 2008
1 parent 99e9896 commit 5a5cdcf
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 37e466408796300ec935e15f01b4ca88678b96ef
refs/heads/master: ccc7baed1868efd02dac88b32cba4a837a558536
6 changes: 3 additions & 3 deletions trunk/drivers/spi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ config SPI_OMAP_UWIRE
This hooks up to the MicroWire controller on OMAP1 chips.

config SPI_OMAP24XX
tristate "McSPI driver for OMAP24xx"
depends on SPI_MASTER && ARCH_OMAP24XX
tristate "McSPI driver for OMAP24xx/OMAP34xx"
depends on SPI_MASTER && (ARCH_OMAP24XX || ARCH_OMAP34XX)
help
SPI master controller for OMAP24xx Multichannel SPI
SPI master controller for OMAP24xx/OMAP34xx Multichannel SPI
(McSPI) modules.

config SPI_PXA2XX
Expand Down
37 changes: 36 additions & 1 deletion trunk/drivers/spi/omap2_mcspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,28 @@ static u8 __initdata spi2_txdma_id[] = {
OMAP24XX_DMA_SPI2_TX1,
};

#if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP34XX)
static u8 __initdata spi3_rxdma_id[] = {
OMAP24XX_DMA_SPI3_RX0,
OMAP24XX_DMA_SPI3_RX1,
};

static u8 __initdata spi3_txdma_id[] = {
OMAP24XX_DMA_SPI3_TX0,
OMAP24XX_DMA_SPI3_TX1,
};
#endif

#ifdef CONFIG_ARCH_OMAP3
static u8 __initdata spi4_rxdma_id[] = {
OMAP34XX_DMA_SPI4_RX0,
};

static u8 __initdata spi4_txdma_id[] = {
OMAP34XX_DMA_SPI4_TX0,
};
#endif

static int __init omap2_mcspi_probe(struct platform_device *pdev)
{
struct spi_master *master;
Expand All @@ -935,7 +957,20 @@ static int __init omap2_mcspi_probe(struct platform_device *pdev)
txdma_id = spi2_txdma_id;
num_chipselect = 2;
break;
/* REVISIT omap2430 has a third McSPI ... */
#if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3)
case 3:
rxdma_id = spi3_rxdma_id;
txdma_id = spi3_txdma_id;
num_chipselect = 2;
break;
#endif
#ifdef CONFIG_ARCH_OMAP3
case 4:
rxdma_id = spi4_rxdma_id;
txdma_id = spi4_txdma_id;
num_chipselect = 1;
break;
#endif
default:
return -EINVAL;
}
Expand Down

0 comments on commit 5a5cdcf

Please sign in to comment.