coreboot-kgpe-d16/src/mainboard/google/veyron_pinky
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
..
sdram_inf google/veyron_*: add ELPIDA F8132A3MA and FA232A2MA sdram 2015-04-22 08:43:32 +02:00
board.h rockchip/rk3288: use bl_en instead lcd_bl to fill_lb_gpio 2015-04-22 08:41:37 +02:00
boardid.c veyron*: sdram_get_ram_code() -> ram_code() 2015-04-10 20:50:16 +02:00
bootblock.c rockchip/rk3288: Fix SPI clock divisor calculation 2015-04-22 08:49:49 +02:00
chromeos.c veyron: Add "backlight" GPIO to coreboot table 2015-04-15 16:54:07 +02:00
devicetree.cb rk3288: support edp HPD function 2015-04-15 22:13:40 +02:00
Kconfig Kconfig: rename CONSOLE_SERIAL_UART to DRIVERS_UART 2015-04-20 18:43:36 +02:00
Kconfig.name kconfig: automatically include mainboards 2015-04-18 08:31:08 +02:00
mainboard.c rockchip/rk3288: use bl_en instead lcd_bl to fill_lb_gpio 2015-04-22 08:41:37 +02:00
Makefile.inc New mechanism to define SRAM/memory map with automatic bounds checking 2015-04-06 22:05:01 +02:00
memlayout.ld rk3288: Change all SoC headers to <soc/headername.h> system 2015-04-08 09:28:50 +02:00
reset.c gpio: Extend common GPIO header, simplify function names 2015-04-10 11:57:33 +02:00
romstage.c arm(64): Globally replace writel(v, a) with write32(a, v) 2015-04-21 08:22:28 +02:00
sdram_configs.c google/veyron_*: add ELPIDA F8132A3MA and FA232A2MA sdram 2015-04-22 08:43:32 +02:00