gma: Export backlight control interface
Change-Id: I5a157d7849124fd3b4cca8f9de1d605092fd3c5e
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.coreboot.org/c/libgfxinit/+/43668
Tested-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
diff --git a/common/hw-gfx-gma.ads b/common/hw-gfx-gma.ads
index 5c63942..afd1512 100644
--- a/common/hw-gfx-gma.ads
+++ b/common/hw-gfx-gma.ads
@@ -169,6 +169,24 @@
----------------------------------------------------------------------------
+ procedure Backlight_On (Port : Active_Port_Type)
+ with
+ Global => (In_Out => Device_State);
+
+ procedure Backlight_Off (Port : Active_Port_Type)
+ with
+ Global => (In_Out => Device_State);
+
+ procedure Set_Brightness (Port : Active_Port_Type; Level : Word32)
+ with
+ Global => (In_Out => Device_State);
+
+ procedure Get_Max_Brightness (Port : Active_Port_Type; Level : out Word32)
+ with
+ Global => (In_Out => Device_State);
+
+ ----------------------------------------------------------------------------
+
procedure Write_GTT
(GTT_Page : GTT_Range;
Device_Address : GTT_Address_Type;