diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2014-06-02 09:38:18 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-06-02 10:49:35 -0400 |
commit | e7fb921d9f62df05240ad1a74b5a0f623e503c9c (patch) | |
tree | a8591e5c0c6e2cb8cb63aa97c1a824b688dcde71 /drivers/spi/spi-rspi.c | |
parent | 4f12b5e529e4ff274eb478ec1c2ef41358ed9577 (diff) |
spi: rspi: Add DMA support for RSPI on RZ/A1H
Enable DMA support for RSPI on r7s72100 (RZ/A1H).
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-rspi.c')
-rw-r--r-- | drivers/spi/spi-rspi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/spi/spi-rspi.c b/drivers/spi/spi-rspi.c index bec81470dd9c..4bc4138e002b 100644 --- a/drivers/spi/spi-rspi.c +++ b/drivers/spi/spi-rspi.c | |||
@@ -625,6 +625,9 @@ static int rspi_rz_transfer_one(struct spi_master *master, | |||
625 | 625 | ||
626 | rspi_rz_receive_init(rspi); | 626 | rspi_rz_receive_init(rspi); |
627 | 627 | ||
628 | if (master->can_dma && __rspi_can_dma(rspi, xfer)) | ||
629 | return rspi_dma_transfer(rspi, &xfer->tx_sg, &xfer->rx_sg); | ||
630 | |||
628 | ret = rspi_pio_transfer(rspi, xfer->tx_buf, xfer->rx_buf, xfer->len); | 631 | ret = rspi_pio_transfer(rspi, xfer->tx_buf, xfer->rx_buf, xfer->len); |
629 | if (ret < 0) | 632 | if (ret < 0) |
630 | return ret; | 633 | return ret; |