Searched hist:"9 a30903b44a63861de93d5beaaf4c91173bbac0c" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/spi/ |
| H A D | mxc_spi.c | 9a30903b44a63861de93d5beaaf4c91173bbac0c Sat May 11 05:25:54 UTC 2013 Dirk Behme <dirk.behme@gmail.com> spi: mxc_spi: Update pre and post divider algorithm
The spi clock divisor is of the form x * (2**y), or x << y, where x is 1 to 16, and y is 0 to 15. Note the similarity with floating point numbers. Convert the desired divisor to the smallest number which is >= desired divisor, and can be represented in this form. The previous algorithm chose a divisor which could be almost twice as large as needed.
Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com> Signed-off-by: Dirk Behme <dirk.behme@gmail.com>
|