Initial upstream commit
The history contained unlicensed code so everything got squashed, sorry.
Change-Id: I9f5775208f9df6fb29074bf3bc498f68cb17b3a0
Signed-off-by: Nico Huber <nico.huber@secunet.com>
diff --git a/common/hw-gfx-gma-panel.ads b/common/hw-gfx-gma-panel.ads
new file mode 100644
index 0000000..98dc93f
--- /dev/null
+++ b/common/hw-gfx-gma-panel.ads
@@ -0,0 +1,60 @@
+--
+-- Copyright (C) 2015-2016 secunet Security Networks AG
+--
+-- This program is free software; you can redistribute it and/or modify
+-- it under the terms of the GNU General Public License as published by
+-- the Free Software Foundation; version 2 of the License.
+--
+-- This program is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+-- GNU General Public License for more details.
+--
+
+with HW.Time;
+with HW.GFX.GMA.Registers;
+
+private package HW.GFX.GMA.Panel
+with
+ Abstract_State => (Panel_State with Part_Of => GMA.State)
+is
+
+ procedure Static_Init
+ with
+ Global =>
+ (Output => Panel_State,
+ Input => Time.State);
+
+ procedure Setup_PP_Sequencer (Default_Delays : Boolean := False)
+ with
+ Global =>
+ (Input => Time.State,
+ In_Out => Registers.Register_State,
+ Output => Panel_State),
+ Depends =>
+ ((Panel_State, Registers.Register_State) =>
+ (Time.State, Registers.Register_State, Default_Delays)),
+ Pre => True,
+ Post => True;
+
+ ----------------------------------------------------------------------------
+
+ procedure VDD_Override;
+
+ procedure On (Wait : Boolean := True);
+
+ procedure Wait_On;
+
+ procedure Off;
+
+ ----------------------------------------------------------------------------
+
+ procedure Backlight_On;
+
+ procedure Backlight_Off;
+
+ procedure Set_Backlight (Level : Word16);
+
+ procedure Get_Max_Backlight (Level : out Word16);
+
+end HW.GFX.GMA.Panel;