aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReagan Bohan <xbjfk.github@gmail.com>2024-05-15 08:54:15 +0000
committerFelix Singer <service+coreboot-gerrit@felixsinger.de>2024-06-11 20:51:47 +0000
commit89799559004b69dec78771a8d25c24e6ba23c2c6 (patch)
treed4b760e59f56b5ab2900ee7c7f1f6389d8de2909
parentbdd3b00926162f2535813f44bc591eba2d353c82 (diff)
mb/razer/blade_stealth_kbl: add panel_cfg
This commit defines the panel_cfg register for the Razer Blade Stealth (Kaby Lake). This enables libgfxinit support. These values are derived from the stock firmware. First, VBIOSes were extracted from the stock firmware. Then, intelvbtool was used to extract the VBT from each of the VBIOS tables. Finally, intel_vbt_decode from igt-gpu-tools was used to extract the register values. Although there were multiple VBIOSes present in the firmware, all VBIOSes across both firmwares (on version 1.50 for the H2U and 8.02 for the H3Q) had the same register values. Change-Id: I4c8b26ffb7a70d08655986084a714206d9d0c96a Signed-off-by: Reagan Bohan <xbjfk.github@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/82458 Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com> Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/mainboard/razer/blade_stealth_kbl/devicetree.cb13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/mainboard/razer/blade_stealth_kbl/devicetree.cb b/src/mainboard/razer/blade_stealth_kbl/devicetree.cb
index 380bfde2b7..71051be3b7 100644
--- a/src/mainboard/razer/blade_stealth_kbl/devicetree.cb
+++ b/src/mainboard/razer/blade_stealth_kbl/devicetree.cb
@@ -152,7 +152,18 @@ chip soc/intel/skylake
device cpu_cluster 0 on end
device domain 0 on
- device ref igpu on end
+ device ref igpu on
+ register "gfx" = "GMA_STATIC_DISPLAYS(0)"
+
+ register "panel_cfg" = "{
+ .up_delay_ms = 200,
+ .down_delay_ms = 50,
+ .cycle_delay_ms = 500,
+ .backlight_on_delay_ms = 1,
+ .backlight_off_delay_ms = 200,
+ .backlight_pwm_hz = 200,
+ }"
+ end
device ref sa_thermal on end
device ref south_xhci on end
device ref thermal on end