Skip to content

Commit

Permalink
spi/spi-atmel: add dmaengine support
Browse files Browse the repository at this point in the history
Add dmaengine support.

Using "has_dma_support" member of struct is used to select
the transfer mode: dmaengine or pdc.

For the dmaengine transfer mode, it supports both 8 bits and 16 bits transfer.

For the dmaengine transfer mode, if it fails to config dmaengine,
or if the message length is less than 16 bytes, it will use the PIO transfer mode.

Signed-off-by: Nicolas Ferre <[email protected]>
[[email protected]: using "has_dma_support" to select dmaengine as the spi xfer mode]
[[email protected]: fix DMA: OOPS if buffer > 4096 bytes]
[[email protected]: submit the patch]
Signed-off-by: Wenyou Yang <[email protected]>
Signed-off-by: Richard Genoud <[email protected]>
[[email protected]: update with dmaengine interface]
[[email protected]: fix __init/__devinit sections mismatch]
[[email protected]: adapt to slave_config changes]
[[email protected]: add support t0 16 bits transfer]
Tested-by: Richard Genoud <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
Nicolas Ferre authored and broonie committed Apr 24, 2013
1 parent 8aad792 commit 1ccc404
Showing 1 changed file with 566 additions and 21 deletions.
Loading

0 comments on commit 1ccc404

Please sign in to comment.