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)
commitaf060b3f72b801962033f75a2fda25fff992796d
treed4c37f8b64d86ef924a7422a0cf278b33c8b3f47
parent48c29d0d27fbbb4c78d3c14c50067d7e8919ed95
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