commit | 0aa35fdd68187fc7f428df56fda8a656f5f0383e | [log] [tgz] |
---|---|---|
author | Anatolij Gustschin <agust@denx.de> | Wed Jan 19 22:46:32 2011 +0000 |
committer | Albert Aribaud <albert.aribaud@free.fr> | Wed Feb 02 00:54:43 2011 +0100 |
tree | 2ded84b8cf87fb1a3497d66e8f651fe7abdd4c57 | |
parent | 089ebe09fb6ff765ba28be06ed11ee2323fdfaf5 [diff] |
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: Anatolij Gustschin <agust@denx.de> Signed-off-by: Stefano Babic <sbabic@denx.de>