[coreboot-gerrit] Change in libgfxinit[master]: gma: Add procedure to power up legacy VGA block
Nico Huber (Code Review)
gerrit at coreboot.org
Mon Sep 4 14:51:16 CEST 2017
Nico Huber has submitted this change and it was merged. ( https://review.coreboot.org/21323 )
Change subject: gma: Add procedure to power up legacy VGA block
......................................................................
gma: Add procedure to power up legacy VGA block
Calling this is necessary for VGA text mode on at least Skylake, where
the legacy VGA registers are inaccessible otherwise.
Change-Id: I48ba1738bcc7babd4e666e5266f775dcd06b2a3f
Signed-off-by: Nico Huber <nico.huber at secunet.com>
Reviewed-on: https://review.coreboot.org/21323
Reviewed-by: Arthur Heymans <arthur at aheymans.xyz>
Tested-by: Nico Huber <nico.h at gmx.de>
---
M common/hw-gfx-gma.adb
M common/hw-gfx-gma.ads
2 files changed, 23 insertions(+), 0 deletions(-)
Approvals:
Arthur Heymans: Looks good to me, approved
Nico Huber: Verified
diff --git a/common/hw-gfx-gma.adb b/common/hw-gfx-gma.adb
index 99a1276..6bc6fea 100644
--- a/common/hw-gfx-gma.adb
+++ b/common/hw-gfx-gma.adb
@@ -438,6 +438,23 @@
----------------------------------------------------------------------------
+ procedure Power_Up_VGA
+ is
+ Fake_Config : constant Pipe_Configs :=
+ (Primary =>
+ (Port => Analog,
+ Framebuffer => HW.GFX.Default_FB,
+ Mode => HW.GFX.Invalid_Mode),
+ others =>
+ (Port => Disabled,
+ Framebuffer => HW.GFX.Default_FB,
+ Mode => HW.GFX.Invalid_Mode));
+ begin
+ Power_And_Clocks.Power_Up (Cur_Configs, Fake_Config);
+ end Power_Up_VGA;
+
+ ----------------------------------------------------------------------------
+
function FB_First_Page (FB : Framebuffer_Type) return Natural is
(Natural (FB.Offset / GTT_Page_Size));
function FB_Pages (FB : Framebuffer_Type) return Natural is
diff --git a/common/hw-gfx-gma.ads b/common/hw-gfx-gma.ads
index 3771804..cd992b8 100644
--- a/common/hw-gfx-gma.ads
+++ b/common/hw-gfx-gma.ads
@@ -80,6 +80,12 @@
Global => (Input => Init_State);
pragma Warnings (GNATprove, On, "unused variable ""Write_Delay""");
+ pragma Warnings (GNATprove, Off, "subprogram ""Power_Up_VGA"" has no effect",
+ Reason => "Effect depends on the platform compiled for");
+ procedure Power_Up_VGA
+ with
+ Pre => Is_Initialized;
+
procedure Update_Outputs (Configs : Pipe_Configs);
pragma Warnings (GNATprove, Off, "subprogram ""Dump_Configs"" has no effect",
--
To view, visit https://review.coreboot.org/21323
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: libgfxinit
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I48ba1738bcc7babd4e666e5266f775dcd06b2a3f
Gerrit-Change-Number: 21323
Gerrit-PatchSet: 2
Gerrit-Owner: Nico Huber <nico.h at gmx.de>
Gerrit-Reviewer: Arthur Heymans <arthur at aheymans.xyz>
Gerrit-Reviewer: Nico Huber <nico.h at gmx.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20170904/e5b4fbc3/attachment.html>
More information about the coreboot-gerrit
mailing list