spi: tegra: Use shared DMA channel

To avoid running out of DMA channels, use the shared DMA channel
for all four Tegra spi controllers.

Change-Id: Iff644253cf7fae36aa2e42321a1ded35a728da4f
Signed-off-by: Colin Cross <ccross@android.com>
This commit is contained in:
Colin Cross
2010-10-18 15:07:30 -07:00
parent faa973c0bd
commit dca2f292ae

View File

@@ -530,7 +530,8 @@ static int __init spi_tegra_probe(struct platform_device *pdev)
INIT_LIST_HEAD(&tspi->queue);
tspi->rx_dma = tegra_dma_allocate_channel(TEGRA_DMA_MODE_ONESHOT);
tspi->rx_dma = tegra_dma_allocate_channel(TEGRA_DMA_MODE_ONESHOT |
TEGRA_DMA_SHARED);
if (!tspi->rx_dma) {
dev_err(&pdev->dev, "can not allocate rx dma channel\n");
ret = -ENODEV;