]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
MXC: Correct SPI_CPOL setting in SPI driver
authorStefano Babic <sbabic@denx.de>
Mon, 23 Aug 2010 18:41:19 +0000 (20:41 +0200)
committerStefano Babic <sbabic@denx.de>
Thu, 30 Sep 2010 12:42:13 +0000 (14:42 +0200)
commit9f481e95baaca2a5a739f930c16b1cc485b0c1f3
treef569b9da23b356a660168a2f2dbcc2708eff6fa0
parent4d0e49d33639394d25a60a4e2d73e99634348af7
MXC: Correct SPI_CPOL setting in SPI driver

The handling of the SPI_CPOL bit inside the SPI
driver was wrong. As reported by the manual,
the meaning of the SSPOL inside the
configuration register is the same as reported
by SPI specification (0 if low in idle, 1 is high
on idle). The driver inverts this logic.

Because this patch sets the logic as specified, it is required
to clear the CPOL bit in the configuration file to adapt
to the correct logic.

Signed-off-by: Stefano Babic <sbabic@denx.de>
Signed-off-by: David Jander <david.jander@protonic.nl>
drivers/spi/mxc_spi.c
include/configs/imx31_litekit.h
include/configs/mx31ads.h
include/configs/mx31pdk.h
include/configs/mx51evk.h
include/configs/qong.h