coreboot/src/mainboard
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
..
a-trend UPSTREAM: src/mainboard/a-trend - emulation: Add space around operators 2016-09-22 08:54:57 -07:00
aaeon UPSTREAM: AMD geode: Avoid conflicting main() declaration 2017-03-08 05:13:00 -08:00
abit UPSTREAM: src/mainboard/a-trend - emulation: Add space around operators 2016-09-22 08:54:57 -07:00
adi UPSTREAM: cpu/x86/msr.h: Drop excessive includes 2016-12-08 12:31:26 -08:00
adlink
advansus UPSTREAM: src/amd: Add common definition of AMD ACPI MMIO address 2017-01-09 23:46:41 -08:00
amd UPSTREAM: binaryPI boards: Drop any ACPI S3 support 2017-03-08 05:13:02 -08:00
aopen UPSTREAM: aopen/dxplplusu: Switch to 2MiB flash 2017-01-13 18:41:57 -08:00
apple UPSTREAM: nb/i945/gma.c: Refactor panel setup 2017-03-20 10:33:11 -07:00
artecgroup UPSTREAM: AMD geode: Avoid conflicting main() declaration 2017-03-08 05:13:00 -08:00
asrock UPSTREAM: asrock/e350m1: Include ASL for PS/2 controller 2017-03-17 11:06:50 -07:00
asus UPSTREAM: asus/m2v: Make _CRS methods serialized 2017-03-10 10:54:47 -08:00
avalue UPSTREAM: src/amd: Add common definition of AMD ACPI MMIO address 2017-01-09 23:46:41 -08:00
azza UPSTREAM: src/mainboard/a-trend - emulation: Add space around operators 2016-09-22 08:54:57 -07:00
bachmann UPSTREAM: AMD geode: Avoid conflicting main() declaration 2017-03-08 05:13:00 -08:00
bap UPSTREAM: binaryPI boards: Drop any ACPI S3 support 2017-03-08 05:13:02 -08:00
bcom UPSTREAM: src/mainboard/a-trend - emulation: Add space around operators 2016-09-22 08:54:57 -07:00
bifferos
biostar UPSTREAM: AGESA: Add agesa_helper.h header 2017-03-07 04:17:31 -08:00
broadcom UPSTREAM: amdfam10: Perform major include ".c" cleanup 2017-01-05 11:01:40 -08:00
compaq UPSTREAM: src/mainboard/a-trend - emulation: Add space around operators 2016-09-22 08:54:57 -07:00
cubietech
digitallogic UPSTREAM: AMD geode: Avoid conflicting main() declaration 2017-03-08 05:13:00 -08:00
dmp
ecs UPSTREAM: mainboard/*/*/irq_tables.c: Use tabs for indents 2016-09-26 16:52:44 -07:00
elmex UPSTREAM: AGESA: Add agesa_helper.h header 2017-03-07 04:17:31 -08:00
emulation UPSTREAM: mb/emulation/*-riscv: Don't select ARCH_BOOTBLOCK_RISCV 2017-02-27 14:07:50 -08:00
esd UPSTREAM: cpu/x86/msr.h: Drop excessive includes 2016-12-08 12:31:26 -08:00
getac UPSTREAM: mb/getac/p470: Do not select EARLY_CBMEM_INIT 2017-03-06 07:04:37 -08:00
gigabyte UPSTREAM: nb/intel/x4x: Implement resume from S3 suspend 2017-02-21 06:44:24 -08:00
gizmosphere UPSTREAM: AGESA: Add agesa_helper.h header 2017-03-07 04:17:31 -08:00
google UPSTREAM: google/veyron: Work around RAM code strapping error 2017-03-18 12:01:03 -07:00
hp UPSTREAM: AGESA: Add agesa_helper.h header 2017-03-07 04:17:31 -08:00
ibase UPSTREAM: sb/ich7: Use common/gpio.h to set up GPIOs 2017-01-09 23:46:48 -08:00
iei UPSTREAM: AMD geode: Avoid conflicting main() declaration 2017-03-08 05:13:00 -08:00
intel UPSTREAM: mainboard/intel/galileo: Add vboot support 2017-03-16 11:25:40 -07:00
iwave UPSTREAM: cpu/x86/msr.h: Drop excessive includes 2016-12-08 12:31:26 -08:00
iwill UPSTREAM: amdfam10: Perform major include ".c" cleanup 2017-01-05 11:01:40 -08:00
jetway UPSTREAM: AGESA: Add agesa_helper.h header 2017-03-07 04:17:31 -08:00
kontron UPSTREAM: sb/ich7: Use common/gpio.h to set up GPIOs 2017-01-09 23:46:48 -08:00
lanner UPSTREAM: mainboard/lanner/em8510: Use tabs for indents 2016-09-30 18:03:19 -07:00
lenovo UPSTREAM: nb/i945/gma.c: Refactor panel setup 2017-03-20 10:33:11 -07:00
linutop
lippert UPSTREAM: AMD geode: Avoid conflicting main() declaration 2017-03-08 05:13:00 -08:00
lowrisc UPSTREAM: mb/lowrisc/nexys4ddr: Read RAM information from the config string 2016-12-08 12:31:00 -08:00
mitac
msi UPSTREAM: AGESA: Add agesa_helper.h header 2017-03-07 04:17:31 -08:00
nec
nokia
nvidia UPSTREAM: amdfam10: Perform major include ".c" cleanup 2017-01-05 11:01:40 -08:00
packardbell UPSTREAM: intel/nehalem: Use romstage_handoff for S3 2016-12-13 17:49:12 -08:00
pcengines UPSTREAM: binaryPI boards: Drop any ACPI S3 support 2017-03-08 05:13:02 -08:00
purism UPSTREAM: purism/librem13: Set system type to laptop 2017-02-27 12:03:16 -08:00
rca UPSTREAM: mainboard/rca/rm4100: transition away from device_t 2016-11-10 18:32:33 -08:00
roda UPSTREAM: sb/ich7: Use common/gpio.h to set up GPIOs 2017-01-09 23:46:48 -08:00
samsung UPSTREAM: cpu/x86/msr.h: Drop excessive includes 2016-12-08 12:31:26 -08:00
siemens UPSTREAM: siemens/mc_apl1: Clean up the code 2017-03-16 11:25:35 -07:00
soyo
sunw UPSTREAM: amdfam10: Perform major include ".c" cleanup 2017-01-05 11:01:40 -08:00
supermicro UPSTREAM: AGESA f15: Disable IDS tracing by default 2017-03-10 10:54:37 -08:00
technexion UPSTREAM: amd-based mainboards: Fix whitespace in _PTS comments 2017-01-05 11:00:11 -08:00
thomson UPSTREAM: mainboard/thomson/ip1000: transition away from device_t 2016-11-10 18:32:44 -08:00
ti
traverse UPSTREAM: AMD geode: Avoid conflicting main() declaration 2017-03-08 05:13:00 -08:00
tyan UPSTREAM: AGESA: Add agesa_helper.h header 2017-03-07 04:17:31 -08:00
via UPSTREAM: mainboard/via/vt8454c: transition away from device_t 2016-11-16 07:08:07 -08:00
winent UPSTREAM: AMD geode: Avoid conflicting main() declaration 2017-03-08 05:13:00 -08:00
wyse UPSTREAM: AMD geode: Avoid conflicting main() declaration 2017-03-08 05:13:00 -08:00
Kconfig UPSTREAM: Kconfig: Remind users to delete .config when switching boards 2017-01-13 15:21:43 -08:00