spi: imx: Add loopback mode support
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 4 Dec 2015 01:23:24 +0000 (23:23 -0200)
committerMark Brown <broonie@kernel.org>
Fri, 4 Dec 2015 12:13:02 +0000 (12:13 +0000)
commit9f6aa42bbbb23d2115704c5044da951a7e685cc5
treef2fe81d06fbca90f22abfbdb570ea0c5efb820b8
parent8005c49d9aea74d382f474ce11afbbc7d7130bec
spi: imx: Add loopback mode support

Loopback mode can be activated by setting bit LBC (LoopBack
Control) of register ECSPI_TESTREG.

Add support for it.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-imx.c