Valentin Longchamp 8203b201ea kw_spi: fix clock prescaler computation
The computation was not correct with low clock values: setting a 1MHz
clock would result in an overlap that would then configure a 25Mhz
clock.

This patch implements a correct computation method according to the
kirkwood functionnal spec. table 600 (Serial Memory Interface
Configuration Register).

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Holger Brunck <holger.brunck@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>
Acked-by: Prafulla Wadaskar <Prafulla@marvell.com>

Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
2012-09-03 17:28:51 +05:30
..
2012-07-08 22:15:08 +02:00
2012-09-01 14:58:29 +02:00
2012-09-01 14:58:21 +02:00
2012-05-15 08:31:34 +02:00
2012-03-26 23:09:23 +02:00
2012-05-15 08:31:37 +02:00
2012-05-22 13:41:48 -05:00
2012-09-01 14:58:25 +02:00