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)
commit5e3cfc6c4e37ec7040fa235f42586b3312c0ebf2
tree59f03ab3181e5b41dd6a904fa4a62c17f384719c
parent6ce461ea504b0c5eb011b1acccd38fdc28e812ad
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