spi/orion: Add SPI_CHPA and SPI_CPOL support to kirkwood driver.
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Wed, 21 Nov 2012 19:23:35 +0000 (12:23 -0700)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 6 Dec 2012 14:24:52 +0000 (14:24 +0000)
commitb15d5d7004e25716c8b8dfe4e322a64551e2e6cc
tree21ab3f80f674752509f0f4c440303919c41e023c
parent746aeffdd97263d8356870a5dfbbdb5f927378e2
spi/orion: Add SPI_CHPA and SPI_CPOL support to kirkwood driver.

Support these transfer modes from the SPI layer by setting
the appropriate register bits before doing the transfer.

This was tested on the Marvell kirkwood SOC that uses this driver.

Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Rolf Manderscheid <rvm@obsidianresearch.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi-orion.c