From 89799559004b69dec78771a8d25c24e6ba23c2c6 Mon Sep 17 00:00:00 2001 From: Reagan Bohan Date: Wed, 15 May 2024 08:54:15 +0000 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/82458 Reviewed-by: Martin Roth Reviewed-by: Felix Singer Tested-by: build bot (Jenkins) --- src/mainboard/razer/blade_stealth_kbl/devicetree.cb | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3