diff options
author | Andreas Färber <afaerber@suse.de> | 2022-02-19 14:15:48 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-02-22 11:56:41 +0000 |
commit | 1847e3046c528bd85bd51e2860f4139bd9052d6c (patch) | |
tree | b5384060b3dec3f43071d118d36185cf6f3fe9e5 /drivers/soundwire | |
parent | 5741150c808b2bbeb1017609f3029daf6651b7d5 (diff) |
spi: gpio: Implement LSB First bitbang support
Add support for slave DT property spi-lsb-first, i.e., SPI_LSB_FIRST mode.
Duplicate the inline helpers bitbang_txrx_be_cpha{0,1} as LE versions.
Conditionally call them from all the spi-gpio txrx_word callbacks.
Some alternatives to this implementation approach were discussed back
then [0], but eventually it was considered reasonable.
[0] https://lore.kernel.org/linux-arm-kernel/20191212033952.5967-8-afaerber@suse.de/
Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Tested-by: Christian Hewitt <christianshewitt@gmail.com>
Link: https://lore.kernel.org/r/feac3377-4ad1-77d8-9a18-3588d80fb909@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/soundwire')
0 files changed, 0 insertions, 0 deletions