]> Git Repo - u-boot.git/commit
kw_spi: fix clock prescaler computation
authorValentin Longchamp <[email protected]>
Wed, 15 Aug 2012 05:31:49 +0000 (05:31 +0000)
committerPrafulla Wadaskar <[email protected]>
Mon, 3 Sep 2012 11:58:51 +0000 (17:28 +0530)
commit8203b201eaa1b33758956294b3ec70b326f8ba5c
tree28a16a951302bfb2adea574bb3d6208899c55cdd
parentf46b4a1aadb4ab834bcf333a9dd4c7804296e185
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 <[email protected]>
cc: Holger Brunck <[email protected]>
cc: Prafulla Wadaskar <[email protected]>
Acked-by: Prafulla Wadaskar <[email protected]>
Signed-off-by: Prafulla Wadaskar <[email protected]>
arch/arm/include/asm/arch-kirkwood/spi.h
drivers/spi/kirkwood_spi.c
This page took 0.034232 seconds and 4 git commands to generate.