coreboot-kgpe-d16/src/soc
Julius Werner 97ab4250e7 rockchip/rk3288: Fix SPI clock divisor calculation
The code to calculate the RK3288 SPI controller's internal clock divisor
is wrong: it assumes that the divisor register was an "n-1" divisor when
it actually isn't (due to some misleading kernel code that was copied in
here). This means that all SPI clocks are currently running lower than
expected.

This patch fixes the calculation and changes all callers such that the
effective speeds stay the same.

BRANCH=veyron
BUG=chrome-os-partner:38352
TEST=Booted Jerry with and without the patch, dumping the divisor for
flash and EC clocks. Made sure it stays the same.

Change-Id: I2336e2b81c2384b5076175fcf32717a3ab2ba0c5
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 1fd5b990f937019a9bee7bd693c91d6e2fca1adb
Original-Change-Id: I094d57a5933c8b849f5c66194e6cc2952ab68b90
Original-Signed-off-by: Julius Werner <jwerner@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/262269
Original-Reviewed-by: David Hendricks <dhendrix@chromium.org>
Reviewed-on: http://review.coreboot.org/9887
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2015-04-22 08:49:49 +02:00
..
broadcom broadcom/cygnus: add timestamps in pre-ram stages 2015-04-22 08:40:20 +02:00
imgtec pistachio: Remove 50% DDR bandwidth restriction 2015-04-21 08:26:34 +02:00
intel broadwell: Clear USB3.0 PORTSC status bits in sleep_prepare. 2015-04-21 08:09:30 +02:00
marvell chromeos: Move memlayout.h/symbols.h into common directory 2015-04-17 09:55:46 +02:00
nvidia arm(64): Manually clean up the mess left by write32() transition 2015-04-21 08:22:40 +02:00
qualcomm qualcomm/ipq806x: report versions of RPM and DDR init components 2015-04-22 08:40:54 +02:00
rockchip rockchip/rk3288: Fix SPI clock divisor calculation 2015-04-22 08:49:49 +02:00
samsung arm(64): Manually clean up the mess left by write32() transition 2015-04-21 08:22:40 +02:00
ucb kconfig: drop intermittend forwarder files 2015-04-07 17:40:28 +02:00
Makefile.inc broadcom/cygnus: add new SoC driver 2015-04-17 09:57:00 +02:00