From 8376f2d4b2445dc290b0f1eeb6706b0eaef16978 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Fri, 5 Jun 2020 15:11:08 +0200 Subject: mb/asrock/b85m_pro4: Make VGA work on Linux MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently, having libgfxinit try to enable VGA will result in a hang. On the Asrock B85M Pro4, DDI E (VGA) was not being enabled in coreboot, so it did not hang. However, this renders Linux's i915 driver unable to use VGA at all. In absence of monitors with digital inputs, this is bad. To work around this problem, mark DDI E as enabled, and comment out VGA from gma-mainboard.ads for the time being. This allows one to use a VGA monitor, even if it only works after Linux drivers have taken over. Change-Id: Idd6a9e8515a1065ad3c6ddf136896fef9f0fa732 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/42099 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber Reviewed-by: Michael Niewöhner --- src/mainboard/asrock/b85m_pro4/devicetree.cb | 3 +++ src/mainboard/asrock/b85m_pro4/gma-mainboard.ads | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mainboard/asrock/b85m_pro4/devicetree.cb b/src/mainboard/asrock/b85m_pro4/devicetree.cb index 5cf4cf4cc8..eec921ec60 100644 --- a/src/mainboard/asrock/b85m_pro4/devicetree.cb +++ b/src/mainboard/asrock/b85m_pro4/devicetree.cb @@ -1,5 +1,8 @@ chip northbridge/intel/haswell + # This mainboard has VGA + register "gpu_ddi_e_connected" = "1" + device cpu_cluster 0 on chip cpu/intel/haswell register "c1_acpower" = "1" diff --git a/src/mainboard/asrock/b85m_pro4/gma-mainboard.ads b/src/mainboard/asrock/b85m_pro4/gma-mainboard.ads index 393275b958..49ca38ca42 100644 --- a/src/mainboard/asrock/b85m_pro4/gma-mainboard.ads +++ b/src/mainboard/asrock/b85m_pro4/gma-mainboard.ads @@ -11,7 +11,8 @@ private package GMA.Mainboard is ports : constant Port_List := (HDMI1, -- DVI-D HDMI3, -- HDMI - Analog, -- VGA + -- FIXME: Haswell VGA support in libgfxinit is broken + -- Analog, -- VGA others => Disabled); end GMA.Mainboard; -- cgit v1.2.3