]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: at91: add dma support
authorLudovic Desroches <ludovic.desroches@atmel.com>
Fri, 23 Nov 2012 09:09:04 +0000 (10:09 +0100)
committerWolfram Sang <w.sang@pengutronix.de>
Sat, 24 Nov 2012 19:27:30 +0000 (20:27 +0100)
commitb7cc3a3b250947044972e002d6f70772bcf6ff75
treeaac3797f2cd6c5a1bb3131dbf95a4732cd99db9d
parente4d9d7113407e2ee1e50870868ae601867d85052
i2c: at91: add dma support

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>
drivers/i2c/busses/i2c-at91.c