]> git.baikalelectronics.ru Git - kernel.git/commit
spi: dw: support 4-16 bits per word
authorSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Tue, 4 Sep 2018 19:49:44 +0000 (21:49 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 6 Sep 2018 11:09:37 +0000 (12:09 +0100)
commit2371531aca9131528aab8f5902557d68f1ba74ed
treed4c37f8b64d86ef924a7422a0cf278b33c8b3f47
parentae9c0867770396a3739b92c7644735d8183ca6e6
spi: dw: support 4-16 bits per word

The spi-dw driver currently only supports 8 or 16 bits per word.

Since the hardware supports 4-16 bits per word, adapt the driver
to also support this.

Tested on socfpga cyclone5 with a 9-bit SPI display.

Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dw.c