Skip to content
Snippets Groups Projects
Commit 8203b201 authored by Valentin Longchamp's avatar Valentin Longchamp Committed by Prafulla Wadaskar
Browse files

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: default avatarValentin Longchamp <valentin.longchamp@keymile.com>
cc: Holger Brunck <holger.brunck@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>
Acked-by: default avatarPrafulla Wadaskar <Prafulla@marvell.com>

Signed-off-by: default avatarPrafulla Wadaskar <prafulla@marvell.com>
parent f46b4a1a
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment