omap3_spi: introduce CONFIG_OMAP3_SPI_D0_D1_SWAPPED
authorPeter Korsgaard <peter.korsgaard@barco.com>
Wed, 17 Oct 2012 09:20:46 +0000 (09:20 +0000)
committerTom Rini <trini@ti.com>
Thu, 25 Oct 2012 18:30:50 +0000 (11:30 -0700)
commit22cbeed454087ffa6ae6e56880bfff125497619b
treeacb585041b9fde670a748f1763c2c398666248c8
parent8f1fae26a7fb4c0c2897f2f086fe8a3e1da58a9a
omap3_spi: introduce CONFIG_OMAP3_SPI_D0_D1_SWAPPED

D0/D1 Swapped or not is a board property, not anything specific to
the am33xx SoC, so add a custom define for it.

At the same time correct the bit handling for the swapped mode
(DPE0 should be cleared and SI/DPE1 set).

Signed-off-by: Peter Korsgaard <peter.korsgaard@barco.com>
drivers/spi/omap3_spi.c