Skip to content
Snippets Groups Projects
Commit afaa9f65 authored by Anatolij Gustschin's avatar Anatolij Gustschin Committed by Albert Aribaud
Browse files

SPI: mxc_spi: add SPI clock calculation and setup to the driver


The MXC SPI driver didn't calculate the SPI clock up to
now and just used highest possible divider 512 for DATA
RATE in the control register. This results in very low
transfer rates.

The patch adds code to calculate and setup the SPI clock
frequency for transfers.

Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
Signed-off-by: default avatarStefano Babic <sbabic@denx.de>
parent dff01094
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