commit | afaa9f65c24d815ed4f6133c800884921e051913 | [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 | dff0109496846fd9787b6cdc0941217ecdf0ae28 [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>