Skip to content

Commit

Permalink
i2c: at91: add dma support
Browse files Browse the repository at this point in the history
Add dma support for Atmel TWI which is available on sam9x5 and later.

When using dma for reception, you have to read only n-2 bytes. The last
two bytes are read manually. Don't doing this should cause to send the
STOP command too late and then to get extra data in the receive
register.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
  • Loading branch information
Ludovic Desroches authored and Wolfram Sang committed Nov 24, 2012
1 parent 5f43381 commit 60937b2
Showing 1 changed file with 298 additions and 8 deletions.
Loading

0 comments on commit 60937b2

Please sign in to comment.