mfd: atmel-flexcom: Add a driver for Atmel Flexible Serial Communication Unit
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Mon, 28 Sep 2015 09:13:26 +0000 (11:13 +0200)
committerLee Jones <lee.jones@linaro.org>
Fri, 30 Oct 2015 17:19:49 +0000 (17:19 +0000)
commit5c41f11c625e6860b00e58c237dd03a89a8beccc
tree8867f4db4cccdd9f91639b38b228bd855feccd13
parentc335bd5da0054245dfab0ddc8f08bc67a146cc43
mfd: atmel-flexcom: Add a driver for Atmel Flexible Serial Communication Unit

This driver supports the new Atmel Flexcom. The Flexcom is a wrapper which
integrates one SPI controller, one I2C controller and one USART. Only one
function can be enabled at a time. This driver selects the function once
for all, when the Flexcom is probed, according to the value of the new
"atmel,flexcom-mode" device tree property.

This driver has chosen to present the Flexcom to the system as a MFD so
the implementation is seamless for the existing Atmel SPI, I2C and USART
drivers.

Also the Flexcom embeds FIFOs: the latest patches of the SPI, I2C and
USART drivers take advantage of this new feature.

Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/Kconfig
drivers/mfd/Makefile
drivers/mfd/atmel-flexcom.c [new file with mode: 0644]