gma bxt panel: Allow to use secondary panel control logic
Broxton has control logic for two panels. Reflect that.
Flow analysis fails if we initialize globals in Setup_PP_Sequencer.
Hence, move the call to Static_Init out.
Change-Id: Ie84d21a07a0f064f993a54b277e051b8d1ca541c
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.coreboot.org/c/libgfxinit/+/38276
Tested-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
diff --git a/common/hw-gfx-gma-panel.ads b/common/hw-gfx-gma-panel.ads
index 2a97f0e..7d69e56 100644
--- a/common/hw-gfx-gma-panel.ads
+++ b/common/hw-gfx-gma-panel.ads
@@ -29,14 +29,10 @@
procedure Setup_PP_Sequencer (Default_Delays : Boolean := False)
with
Global =>
- (Input => Time.State,
- In_Out => Registers.Register_State,
- Output => Panel_State),
+ (In_Out => (Panel_State, Registers.Register_State)),
Depends =>
((Panel_State, Registers.Register_State) =>
- (Time.State, Registers.Register_State, Default_Delays)),
- Pre => True,
- Post => True;
+ (Panel_State, Registers.Register_State, Default_Delays));
----------------------------------------------------------------------------