<p>Arthur Heymans has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/27513">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">mb/lenovo/x201: Allow use of libgfxinit<br><br>Tested on LVDS(internal),VGA and HDMI output with both native resolution and<br>textmode.<br><br>Change-Id: Ibfcb586d7b4cac7f1d22540bb96c288704a277a0<br>Signed-off-by: Arthur Heymans <arthur@aheymans.xyz><br>---<br>M src/mainboard/lenovo/x201/Kconfig<br>M src/mainboard/lenovo/x201/Makefile.inc<br>A src/mainboard/lenovo/x201/gma-mainboard.ads<br>3 files changed, 33 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/13/27513/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/mainboard/lenovo/x201/Kconfig b/src/mainboard/lenovo/x201/Kconfig</span><br><span>index 398677e..3165ce1 100644</span><br><span>--- a/src/mainboard/lenovo/x201/Kconfig</span><br><span>+++ b/src/mainboard/lenovo/x201/Kconfig</span><br><span>@@ -15,6 +15,7 @@</span><br><span>      select INTEL_INT15</span><br><span>   select HAVE_ACPI_RESUME</span><br><span>      select MAINBOARD_HAS_NATIVE_VGA_INIT</span><br><span style="color: hsl(120, 100%, 40%);">+  select MAINBOARD_HAS_LIBGFXINIT</span><br><span>      select SUPERIO_NSC_PC87382</span><br><span>   select DRIVERS_LENOVO_WACOM</span><br><span>  select MAINBOARD_HAS_LPC_TPM</span><br><span>diff --git a/src/mainboard/lenovo/x201/Makefile.inc b/src/mainboard/lenovo/x201/Makefile.inc</span><br><span>index b0e116f..f7ff93b 100644</span><br><span>--- a/src/mainboard/lenovo/x201/Makefile.inc</span><br><span>+++ b/src/mainboard/lenovo/x201/Makefile.inc</span><br><span>@@ -18,3 +18,5 @@</span><br><span> romstage-y += dock.c</span><br><span> ramstage-y += dock.c</span><br><span> romstage-y += gpio.c</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads</span><br><span>diff --git a/src/mainboard/lenovo/x201/gma-mainboard.ads b/src/mainboard/lenovo/x201/gma-mainboard.ads</span><br><span>new file mode 100644</span><br><span>index 0000000..92702b2</span><br><span>--- /dev/null</span><br><span>+++ b/src/mainboard/lenovo/x201/gma-mainboard.ads</span><br><span>@@ -0,0 +1,30 @@</span><br><span style="color: hsl(120, 100%, 40%);">+--</span><br><span style="color: hsl(120, 100%, 40%);">+-- This file is part of the coreboot project.</span><br><span style="color: hsl(120, 100%, 40%);">+--</span><br><span style="color: hsl(120, 100%, 40%);">+-- This program is free software; you can redistribute it and/or modify</span><br><span style="color: hsl(120, 100%, 40%);">+-- it under the terms of the GNU General Public License as published by</span><br><span style="color: hsl(120, 100%, 40%);">+-- the Free Software Foundation; either version 2 of the License, or</span><br><span style="color: hsl(120, 100%, 40%);">+-- (at your option) any later version.</span><br><span style="color: hsl(120, 100%, 40%);">+--</span><br><span style="color: hsl(120, 100%, 40%);">+-- This program is distributed in the hope that it will be useful,</span><br><span style="color: hsl(120, 100%, 40%);">+-- but WITHOUT ANY WARRANTY; without even the implied warranty of</span><br><span style="color: hsl(120, 100%, 40%);">+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span><br><span style="color: hsl(120, 100%, 40%);">+-- GNU General Public License for more details.</span><br><span style="color: hsl(120, 100%, 40%);">+--</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+with HW.GFX.GMA;</span><br><span style="color: hsl(120, 100%, 40%);">+with HW.GFX.GMA.Display_Probing;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+use HW.GFX.GMA;</span><br><span style="color: hsl(120, 100%, 40%);">+use HW.GFX.GMA.Display_Probing;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+private package GMA.Mainboard is</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   ports : constant Port_List :=</span><br><span style="color: hsl(120, 100%, 40%);">+     (DP2,</span><br><span style="color: hsl(120, 100%, 40%);">+      HDMI2,</span><br><span style="color: hsl(120, 100%, 40%);">+      Analog,</span><br><span style="color: hsl(120, 100%, 40%);">+      Internal,</span><br><span style="color: hsl(120, 100%, 40%);">+      others => Disabled);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+end GMA.Mainboard;</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/27513">change 27513</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/27513"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ibfcb586d7b4cac7f1d22540bb96c288704a277a0 </div>
<div style="display:none"> Gerrit-Change-Number: 27513 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Arthur Heymans <arthur@aheymans.xyz> </div>