From 56360d4f7b3fe2d9ae9f0db86c2869c8c6704624 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Fri, 10 Apr 2020 20:56:07 +0800 Subject: [PATCH] autoport: use GMA_STATIC_DISPLAYS Change-Id: Ie988b2caeb2cdc07a3d6466b7ae3501df469ef41 Signed-off-by: Iru Cai Reviewed-on: https://review.coreboot.org/c/coreboot/+/40364 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- util/autoport/sandybridge.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util/autoport/sandybridge.go b/util/autoport/sandybridge.go index a64ef7a4c2..6f57847a1d 100644 --- a/util/autoport/sandybridge.go +++ b/util/autoport/sandybridge.go @@ -1,5 +1,7 @@ package main +import "fmt" + type sandybridgemc struct { } @@ -30,7 +32,7 @@ func (i sandybridgemc) Scan(ctx Context, addr PCIDevData) { "gpu_panel_power_cycle_delay": FormatInt32(inteltool.IGD[0xc7210] & 0xff), "gpu_cpu_backlight": FormatHex32(inteltool.IGD[0x48254]), "gpu_pch_backlight": FormatHex32((inteltool.IGD[0xc8254] >> 16) * 0x10001), - "gfx.use_spread_spectrum_clock": FormatBool((inteltool.IGD[0xc6200]>>12)&1 != 0), + "gfx": fmt.Sprintf("GMA_STATIC_DISPLAYS(%d)", (inteltool.IGD[0xc6200] >> 12) & 1), }, Children: []DevTreeNode{ {