spi: spi-imx: add support for SPI_MOSI_IDLE_LOW mode bit
authorBoerge Struempfel <boerge.struempfel@gmail.com>
Tue, 30 May 2023 14:16:38 +0000 (16:16 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 30 May 2023 14:20:09 +0000 (15:20 +0100)
commit6a983ff5102ff0d859df05ca3f5cf2f6a17c0fad
treeab1cb0d6f66f3272d565d1f555c64d50863a73e0
parenta45baa079e2a6b7a5516354c6ff08702232384f5
spi: spi-imx: add support for SPI_MOSI_IDLE_LOW mode bit

By default, the spi-imx controller pulls the mosi line high, whenever it
is idle. This behaviour can be inverted per CS by setting the
corresponding DATA_CTL bit in the config register of the controller.

Also, since the controller mode-bits have to be touched anyways, the
SPI_CPOL and SPI_CPHA are replaced by the combined SPI_MODE_X_MASK flag.

Signed-off-by: Boerge Struempfel <boerge.struempfel@gmail.com>
Link: https://lore.kernel.org/r/20230530141641.1155691-3-boerge.struempfel@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-imx.c