coreboot-kgpe-d16/src/soc/rockchip/rk3288
Julius Werner 6911219ccc edid: Add helper function to calculate bits-per-pixel dependent values
Coreboot and most payloads support three basic pixel widths for the
framebuffer. It assumes 32 by default, but several chipsets need to
override that value with whatever else they're supporting. Our struct
edid contains multiple convenience values that are directly derived from
this (and other properties), so changing the bits per pixel always
requires recalculating all those dependents in the chipset code. This
patch provides a small convenience wrapper that can be used to
consistently update the whole struct edid with a new pixel width
instead, so we no longer need to duplicate those calculations
everywhere.

BUG=None
TEST=Booted Oak in all three pixel widths (which it conveniently all
supports), confirmed that images looked good.

Change-Id: I5376dd4e28cf107ac2fba1dc418f5e1c5a2e2de6
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/14158
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
2016-03-24 20:25:12 +01:00
..
include/soc tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
bootblock.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
cbmem.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
chip.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
clock.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
crypto.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
display.c edid: Add helper function to calculate bits-per-pixel dependent values 2016-03-24 20:25:12 +01:00
edp.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
gpio.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
hdmi.c google/veyron*: Pulse the i2c clock once if sda was low 2015-11-18 16:29:16 +01:00
i2c.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
Kconfig timestamp: Remove HAS_PRECBMEM_TIMESTAMP_REGION Kconfig 2016-02-12 21:54:52 +01:00
Makefile.inc rockchip: update make_idb.py 2016-03-16 15:24:10 +01:00
pwm.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
rk808.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
sdram.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
soc.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
software_i2c.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
spi.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
timer.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
tsadc.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
uart.c rockchip/rk3288: UART uses 32bit wide registers 2016-02-09 21:53:22 +01:00
vop.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00