[PATCH] ARM: OMAP: edge selection for McSPI / uWire
authorImre Deak <imre.deak@nokia.com>
Fri, 26 May 2006 23:28:44 +0000 (16:28 -0700)
committerTony Lindgren <tony@atomide.com>
Fri, 26 May 2006 23:28:44 +0000 (16:28 -0700)
commit7daf4efe5866b1eea8b0fa64794f96269e16ffdb
tree2d3a56bc98ae33c21cb0ef4a859f287fd8441add
parent5f3e43dbce2517bb1c5d268816e9fdda68cc5478
[PATCH] ARM: OMAP: edge selection for McSPI / uWire

SPI mode 0 maps to the case where we have write on rising and read on
falling clock edge. Fix the OMAP2 McSPI and OMAP1 uWire edge selection
accordingly.

In the uWire case the meaning of the HW flag selecting the read edge
selection must be flipped for correct operation and this is in
contradiction with the OMAP1 specification. Tests were performed on SPI
devices using mode 1 (original uWire protocoll) like the ads7846 to
validate this.

Signed-off-by: Imre Deak <imre.deak@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/spi/omap2_mcspi.c
drivers/spi/omap_uwire.c