]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: at91: add support to FIFOs
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Tue, 9 Jun 2015 16:22:19 +0000 (18:22 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 10 Jun 2015 12:55:36 +0000 (21:55 +0900)
commit23ac0e075537b23b128cb25a948a6e421ce10ed4
tree59f03ab3181e5b41dd6a904fa4a62c17f384719c
parenta6698cff86193abf476da1fa390548dae3e91203
i2c: at91: add support to FIFOs

When FIFOs are available and enabled, the driver now configures the Atmel
eXtended DMA Controller to perform word accesses instead of byte accesses
when possible.
The actual access width depends on the size of the buffer to transmit.

To enable FIFO support the "atmel,fifo-size" property must be set properly
in the I2C controller node of the device tree.

Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-at91.c