diff options
author | minwuklee <mlee@nvidia.com> | 2010-12-06 13:55:52 +0900 |
---|---|---|
committer | Bharat Nihalani <bnihalani@nvidia.com> | 2010-12-07 01:02:43 -0800 |
commit | ca1049c4b06fad1321d683503c7ac1400370e8d2 (patch) | |
tree | d6981bef3c653878e091b64cab69e02062bf204d /drivers/spi | |
parent | cf1b67dab294e70458e4623f919384e949af8531 (diff) |
[tegra:dma] set dma burst size for spi/slink
for spi/slink, depending on transfer size,
burst size can be set to 1, 4, or 8.
bug 747979
Change-Id: Ieae0285d374e7d0eb6c2c2e633f8cafbb2b51b3a
Reviewed-on: http://git-master/r/12076
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers/spi')
-rwxr-xr-x | drivers/spi/spi_tegra.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/spi/spi_tegra.c b/drivers/spi/spi_tegra.c index 5d7100085a5c..9470f1f438ad 100755 --- a/drivers/spi/spi_tegra.c +++ b/drivers/spi/spi_tegra.c @@ -201,8 +201,10 @@ static void spi_tegra_go(struct spi_tegra_data *tspi) val &= ~SLINK_TX_TRIG_MASK & ~SLINK_RX_TRIG_MASK; if (tspi->rx_dma_req.size & 0xF) { val |= SLINK_TX_TRIG_1 | SLINK_RX_TRIG_1; - } else { + } else if ((tspi->rx_dma_req.size >> 4) & 0x1){ val |= SLINK_TX_TRIG_4 | SLINK_RX_TRIG_4; + } else { + val |= SLINK_TX_TRIG_8 | SLINK_RX_TRIG_8; } spi_tegra_writel(tspi, val, SLINK_DMA_CTL); } |