spi: tegra114: add SPI_LSB_FIRST support
authorSowjanya Komatineni <skomatineni@nvidia.com>
Wed, 27 Mar 2019 05:56:33 +0000 (22:56 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 1 Apr 2019 08:50:47 +0000 (15:50 +0700)
commit2b17a3c759e5e2ed3faafb69e243ec312e3bf0da
tree9a59455aed5ac66773ca5e5745da27942044a995
parentfc9ba6e3e28afcedf3bb3105b1d8cbc5c183c2a3
spi: tegra114: add SPI_LSB_FIRST support

Tegra SPI controller supports lsb first mode. Default is MSB bit first
and on selection of SPI_LSB_FIRST through SPI mode transmission happens
with LSB bit first.

This patch adds SPI_LSB_FIRST flag to mode_bits and also configures it
on request.

Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-tegra114.c