]> git.sur5r.net Git - u-boot/commit
spi: omap3: add support for more word lengths
authorNikita Kiryanov <nikita@compulab.co.il>
Wed, 16 Oct 2013 14:23:25 +0000 (17:23 +0300)
committerAnatolij Gustschin <agust@denx.de>
Tue, 12 Nov 2013 09:02:44 +0000 (10:02 +0100)
commit5753d09b1064a669e3be8f27e0f1fd008b96934a
tree03eb9c4427faed627d41802960f0c7c516e35203
parent54a759c880a11a6dd93704f0adba40139b595e87
spi: omap3: add support for more word lengths

Current implementation only supports 8 bit word lengths, even though
omap3 can handle anything between 4 and 32.

Update the spi interface to support changing the SPI word length,
and implement it in omap3_spi driver to support the full range of
possible word lengths.
This implementation is backwards compatible by defaulting to the old
behavior of 8 bit word lengths.
Also, it required a change to the omap3_spi non static I/O functions,
but since they are not used anywhere else, no collateral changes are required.

Cc: Tom Rini <trini@ti.com>
Cc: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
Cc: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
drivers/spi/omap3_spi.c
drivers/spi/omap3_spi.h
drivers/spi/spi.c
include/spi.h