coreboot/src
Arthur Heymans 9905ad23e1 UPSTREAM: nb/i945/gma.c: Refactor panel setup
This reuses some of gm45 code to set up the panel.

Panel start and stop delays and pwm frequency can now be set in
devicetree.

Linux does not make the difference between 945gm and gm45
for panel delays, so it is safe to assume the semantics of those
registers are the same.

The core display clock is computed according to "Mobile Intel 945
Express Chipset Family" Datasheet.

This selects Legacy backlight mode since most targets have some smm
code that rely on this.

This sets the same backlight frequency as vendor bios on Thinkpad X60
and T60.

A default of 180Hz is selected for the PWM frequency if it is not
defined in the devicetree, this might be annoying for displays that
are LED backlit, but is a safe value for CCFL backlit displays.

BUG=none
BRANCH=none
TEST=none

Change-Id: I86445ab53cb83bc5183fb998ca03e00b4746a33f
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 8e079000dc
Original-Change-Id: I1c47b68eecc19624ee534598c22da183bc89425d
Original-Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Original-Reviewed-on: https://review.coreboot.org/18141
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Original-Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://chromium-review.googlesource.com/457362
2017-03-20 10:33:11 -07:00
..
acpi UPSTREAM: src/acpi: Capitalize ACPI and SATA 2016-08-04 23:37:57 -07:00
arch UPSTREAM: arch/x86: Wrap lines at 80 columns 2017-03-18 12:01:01 -07:00
commonlib UPSTREAM: commonlib: Wrap lines at 80 columns 2017-03-14 07:25:36 -07:00
console UPSTREAM: console: Enable do_printk_va_list for VBOOT 2017-01-05 11:00:16 -08:00
cpu UPSTREAM: binaryPI: Fix SSE regression and align stack early 2017-03-17 11:06:51 -07:00
device UPSTREAM: device/dram/ddr2: Add common ddr2 spd decoder 2017-03-10 10:54:48 -08:00
drivers UPSTREAM: nb/i945/gma.c: Refactor panel setup 2017-03-20 10:33:11 -07:00
ec UPSTREAM: lenovo/t400: Rewrite dock from t60 2017-03-11 17:04:39 -08:00
include UPSTREAM: src/include: Wrap lines at 80 columns 2017-03-14 07:25:31 -07:00
lib UPSTREAM: src/lib: Clean up general issues found by checkpatch.pl 2017-03-16 11:25:34 -07:00
mainboard UPSTREAM: nb/i945/gma.c: Refactor panel setup 2017-03-20 10:33:11 -07:00
northbridge UPSTREAM: nb/i945/gma.c: Refactor panel setup 2017-03-20 10:33:11 -07:00
soc UPSTREAM: soc/intel/broadwell: Fix other issues detected by checkpatch 2017-03-20 10:33:10 -07:00
southbridge UPSTREAM: AGESA: Move heap allocator declarations 2017-03-08 05:13:01 -08:00
superio UPSTREAM: sio/ite/it8783ef: Return (0) in ACPI _PSC methods 2016-12-16 04:50:43 -08:00
vboot UPSTREAM: vboot: Allow other platforms to use soft reboot workaround 2017-03-16 00:11:37 -07:00
vendorcode UPSTREAM: vboot/tpm2: enable nvmem commits on cr50 when writing firmware secdata 2017-03-10 10:54:45 -08:00
Kconfig UPSTREAM: GDB_WAIT: Clarify Kconfig description 2017-03-16 00:11:36 -07:00