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
..
2011-04-27 19:38:10 +02:00
2012-09-01 14:58:19 +02:00
2011-09-07 21:46:40 +02:00
2012-03-19 00:08:26 +01:00
2010-10-13 09:59:39 +02:00
2012-09-01 14:58:14 +02:00
2012-09-01 14:58:21 +02:00
2012-09-01 14:58:19 +02:00
2010-04-13 09:13:12 +02:00
2012-09-01 14:58:24 +02:00
2012-09-01 14:58:30 +02:00
2012-03-26 23:09:26 +02:00
2012-09-03 17:28:51 +05:30
2010-04-13 09:13:12 +02:00
2012-05-15 08:31:21 +02:00
2010-04-13 09:13:12 +02:00
2011-08-04 13:56:55 +02:00
2012-09-01 14:58:30 +02:00
2012-09-01 14:58:30 +02:00
2012-09-01 14:58:30 +02:00
2012-09-01 14:58:30 +02:00
2012-09-01 14:58:30 +02:00
2012-09-01 14:58:30 +02:00
2012-09-01 14:58:30 +02:00
2010-04-13 09:13:12 +02:00
2012-09-01 14:58:11 +02:00
2012-09-01 14:58:19 +02:00
2012-09-01 14:58:19 +02:00
2010-10-13 09:59:33 +02:00
2012-02-12 10:11:28 +01:00
2011-11-03 22:56:22 +01:00
2011-12-11 14:41:14 +01:00
2012-07-31 08:02:41 +02:00
2010-04-13 09:13:12 +02:00
2010-04-13 09:13:12 +02:00
2010-04-13 09:13:12 +02:00
2012-07-07 14:07:25 +02:00
2010-04-13 09:13:12 +02:00
2012-07-07 14:07:43 +02:00
2012-09-01 14:58:22 +02:00
2010-06-08 10:07:17 -05:00
2012-09-01 14:58:20 +02:00
2012-09-01 14:58:27 +02:00
2010-04-13 09:13:12 +02:00
2011-11-15 22:25:50 +01:00
2011-04-27 19:38:07 +02:00
2010-04-13 09:13:12 +02:00
2011-07-16 13:00:11 +02:00
2012-03-27 22:05:29 +02:00
2010-04-13 09:13:12 +02:00
2011-10-23 20:50:42 +02:00
2010-10-29 21:32:07 +02:00
2011-11-29 15:43:38 +01:00
2012-02-12 10:11:31 +01:00
2012-09-01 14:58:12 +02:00
2010-04-13 09:13:12 +02:00
2012-08-09 21:46:32 +02:00
2012-01-09 20:10:32 -06:00
2010-04-13 09:13:12 +02:00
2011-02-21 08:30:55 +01:00
2012-05-15 08:31:26 +02:00
2011-11-15 22:25:50 +01:00
2010-04-13 09:13:12 +02:00
2010-04-13 09:13:12 +02:00
2012-09-01 14:58:18 +02:00
2011-09-13 08:25:15 +02:00
2011-07-04 10:55:25 +02:00
2010-04-13 09:13:12 +02:00
2010-04-13 09:13:12 +02:00
2010-04-13 09:13:12 +02:00
2010-04-13 09:13:12 +02:00
2010-10-13 09:59:33 +02:00
2011-04-27 19:38:07 +02:00
2010-04-13 09:13:12 +02:00
2010-04-13 09:13:12 +02:00
2012-07-07 14:07:44 +02:00
2012-05-15 17:32:05 -05:00
2010-04-13 09:13:12 +02:00
2011-07-04 10:55:25 +02:00