<p>Evgeny Zinoviev has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/28620">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">mb/lenovo: Add libgfxinit support on Lenovo T520<br><br>Change-Id: I4fcdb7467f1911af722f4c24ce64807079a91340<br>Signed-off-by: Evgeny Zinoviev <me@ch1p.com><br>---<br>M src/mainboard/lenovo/t520/Kconfig<br>M src/mainboard/lenovo/t520/Makefile.inc<br>A src/mainboard/lenovo/t520/gma-mainboard.ads<br>3 files changed, 36 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/20/28620/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/mainboard/lenovo/t520/Kconfig b/src/mainboard/lenovo/t520/Kconfig</span><br><span>index 85dedb3..79455e2 100644</span><br><span>--- a/src/mainboard/lenovo/t520/Kconfig</span><br><span>+++ b/src/mainboard/lenovo/t520/Kconfig</span><br><span>@@ -15,6 +15,7 @@</span><br><span>      select HAVE_ACPI_RESUME</span><br><span>      select INTEL_INT15</span><br><span>   select SANDYBRIDGE_IVYBRIDGE_LVDS</span><br><span style="color: hsl(120, 100%, 40%);">+     select MAINBOARD_HAS_LIBGFXINIT</span><br><span>      select MAINBOARD_HAS_LPC_TPM</span><br><span>         select MAINBOARD_HAS_TPM1</span><br><span>    select DRIVERS_LENOVO_HYBRID_GRAPHICS</span><br><span>diff --git a/src/mainboard/lenovo/t520/Makefile.inc b/src/mainboard/lenovo/t520/Makefile.inc</span><br><span>index 5c450eb..7187013 100644</span><br><span>--- a/src/mainboard/lenovo/t520/Makefile.inc</span><br><span>+++ b/src/mainboard/lenovo/t520/Makefile.inc</span><br><span>@@ -16,3 +16,4 @@</span><br><span> smm-$(CONFIG_HAVE_SMI_HANDLER) += smihandler.c</span><br><span> romstage-y += variants/$(VARIANT_DIR)/gpio.c</span><br><span> romstage-y += variants/$(VARIANT_DIR)/romstage.c</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/t520/gma-mainboard.ads b/src/mainboard/lenovo/t520/gma-mainboard.ads</span><br><span>new file mode 100644</span><br><span>index 0000000..d4a5d7d</span><br><span>--- /dev/null</span><br><span>+++ b/src/mainboard/lenovo/t520/gma-mainboard.ads</span><br><span>@@ -0,0 +1,34 @@</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%);">+     (DP1,</span><br><span style="color: hsl(120, 100%, 40%);">+      DP2,</span><br><span style="color: hsl(120, 100%, 40%);">+      DP3,</span><br><span style="color: hsl(120, 100%, 40%);">+      HDMI1,</span><br><span style="color: hsl(120, 100%, 40%);">+      HDMI2,</span><br><span style="color: hsl(120, 100%, 40%);">+      HDMI3,</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/28620">change 28620</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/28620"/><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: I4fcdb7467f1911af722f4c24ce64807079a91340 </div>
<div style="display:none"> Gerrit-Change-Number: 28620 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Evgeny Zinoviev <me@ch1p.com> </div>