Skip to content
Snippets Groups Projects
Commit 9f481e95 authored by Stefano Babic's avatar Stefano Babic
Browse files

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: default avatarStefano Babic <sbabic@denx.de>
Signed-off-by: default avatarDavid Jander <david.jander@protonic.nl>
parent 4d0e49d3
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment