gma tgl: Factor power-domain handling out

ADL-P brings new power domains with different dependencies. Let's
make room for an alternative implementation.

This breaks building the ADL-P config until its implementation is
added in a follow-up commit.

Change-Id: I38d6702fe34536ba5d4023f1b1f2e4a979df21b9
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/libgfxinit/+/508
Reviewed-by: Thomas Heijligen <src@posteo.de>
diff --git a/common/tigerlake/hw-gfx-gma-power_domains_common.ads b/common/tigerlake/hw-gfx-gma-power_domains_common.ads
new file mode 100644
index 0000000..c46bf43
--- /dev/null
+++ b/common/tigerlake/hw-gfx-gma-power_domains_common.ads
@@ -0,0 +1,29 @@
+--
+-- Copyright (C) 2022 Google, LLC
+--
+-- 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; either version 2 of the License, or
+-- (at your option) any later version.
+--
+-- 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.GFX.GMA.Registers;
+
+with HW.GFX.GMA.Power_Domains;
+use HW.GFX.GMA.Power_Domains;
+
+private package HW.GFX.GMA.Power_Domains_Common is
+
+   procedure PD_On (PD : Power_Domain);
+
+   procedure Power_Set_To (Configs : Pipe_Configs);
+   procedure Power_Up (Old_Configs, New_Configs : Pipe_Configs);
+   procedure Power_Down (Old_Configs, Tmp_Configs, New_Configs : Pipe_Configs);
+   procedure All_Off;
+
+end HW.GFX.GMA.Power_Domains_Common;