From 8e7928a6fe05a295ca412cb6a6df509de7b73f13 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Sun, 18 Oct 2015 23:40:34 +0800 Subject: sandybridge/gma_lvds: support both Sandy&Ivy on one board Sandy and Ivy Bridge processors use the same socket, and a mainboard with the socket can support both types of CPUs. However, they use different native graphics init code for LVDS and cause a crash if running the wrong code. This change detects the CPU type and then selects the right code to run. It will add some more code in ramstage. It also merges the {SANDY,IVY}BRIDGE_LVDS symbol to one SANDYBRIDGE_IVYBRIDGE_LVDS. Tested on a Lenovo T520 with i7-2630qm and i7-3720qm Signed-off-by: Iru Cai Change-Id: I4624759f9c92d56d547db1ab4b9a1d611a182a91 Reviewed-on: https://review.coreboot.org/12087 Reviewed-by: Vladimir Serbinenko Tested-by: build bot (Jenkins) --- util/autoport/sandybridge.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/autoport/sandybridge.go') diff --git a/util/autoport/sandybridge.go b/util/autoport/sandybridge.go index 4ef6609b45..86142e8cb9 100644 --- a/util/autoport/sandybridge.go +++ b/util/autoport/sandybridge.go @@ -110,7 +110,7 @@ func (i sandybridgemc) Scan(ctx Context, addr PCIDevData) { PutPCIDev(addr, "Host bridge") /* FIXME:XX some configs are unsupported. */ - KconfigBool[i.variant+"BRIDGE_LVDS"] = true + KconfigBool["SANDYBRIDGE_IVYBRIDGE_LVDS"] = true KconfigBool["CPU_INTEL_SOCKET_RPGA989"] = true KconfigBool["NORTHBRIDGE_INTEL_"+i.variant+"BRIDGE"] = true -- cgit v1.2.3