coreboot-kgpe-d16/src/soc/nvidia/tegra210
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 tegra132/210: Remove memlayout_vboot2.ld 2016-02-12 21:58:34 +01:00
jdi_25x18_display tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
lp0 nvidia/tegra210: lp0_resume: clear the MC_INTSTATUS if MC_INTMASK was 0 2015-11-05 17:40:11 +01:00
addressmap.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
ape.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
arm_tf.c 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
bootblock_asm.S 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
ccplex.c arm64: remove secmon 2015-11-07 03:28:06 +01:00
chip.h arm64: remove spin table support 2015-11-07 03:28:50 +01:00
clock.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
cpu.c arm64: tegra132: tegra210: Remove old arm64/stage_entry.S 2015-11-17 21:31:20 +01:00
dc.c edid: Add helper function to calculate bits-per-pixel dependent values 2016-03-24 20:25:12 +01:00
dma.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
dp.c edid: Use edid_mode struct to reduce redundancy 2015-08-28 06:42:03 +00:00
dsi.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
flow_ctrl.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
funitcfg.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
gic.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
i2c.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
i2c6.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 arm64: Remove SMP support 2015-11-07 03:29:14 +01:00
mipi-phy.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
mipi.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
mipi_dsi.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
mmu_operations.c arm64: mmu: Make page table manipulation work across stages 2015-11-11 05:07:58 +01:00
monotonic_timer.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
mtc.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
padconfig.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
power.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
ram_code.c nvidia/tegra210: add new SoC 2015-06-30 21:43:01 +02:00
ramstage.c arm64: tegra132: tegra210: Remove old arm64/stage_entry.S 2015-11-17 21:31:20 +01:00
reset.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
romstage.c arm64: tegra132: tegra210: Remove old arm64/stage_entry.S 2015-11-17 21:31:20 +01:00
romstage_asm.S tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
sdram.c t210: new sdram_lp0_save_params() function 2015-07-16 22:39:33 +02:00
sdram_lp0.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
soc.c arm64: Remove cpu intialization through device-tree 2015-11-07 03:29:35 +01:00
sor.c nvidia/tegra210: add new SoC 2015-06-30 21:43:01 +02:00
spi.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
stack.S tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
stage_entry.S arm64: tegra132: tegra210: Remove old arm64/stage_entry.S 2015-11-17 21:31:20 +01:00
uart.c soc/*: fix uart's regwidth specification in cbtables 2016-02-21 12:26:05 +01:00