]> git.sur5r.net Git - u-boot/commit
spi: spi-mxc: implement clk control for ECSPI to fix SPI_MODE_3
authorMarkus Niebel <Markus.Niebel@tqs.de>
Mon, 17 Feb 2014 16:33:17 +0000 (17:33 +0100)
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>
Tue, 18 Feb 2014 16:59:26 +0000 (22:29 +0530)
commit5d584ccec106f8919ce39562e062d822770513b7
tree41e9261dec0d4d02b4c5fc65fbec8eb190b6b097
parentd7cbcc762ea88ad20e9005a85bf7d55939b5e9d2
spi: spi-mxc: implement clk control for ECSPI to fix SPI_MODE_3

SPI_MODE_3 requires clk high when inactive. The SCLK_CTL
field of the config reg was not configured in case of CPOL.
Fix configuration so that SPI_MODE_3 which uses CPOL configures
the clk line to be high in inactive state.

Signed-off-by: Markus Niebel <Markus.Niebel@tqs.de>
Reviewed-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
drivers/spi/mxc_spi.c