Drop generation suffix from `Power_And_Clocks`
There's no need to differentiate between `Power_And_Clocks` packages for
different generations anymore.
Change-Id: Ide297d52959285e93185c84690a343a2679282db
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/libgfxinit/+/43597
Tested-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Nico Huber <nico.h@gmx.de>
diff --git a/common/skylake/Makefile.inc b/common/skylake/Makefile.inc
index cf720bf..dc1e08d 100644
--- a/common/skylake/Makefile.inc
+++ b/common/skylake/Makefile.inc
@@ -7,7 +7,6 @@
gfxinit-y += hw-gfx-gma-plls-dpll_0.ads
gfxinit-y += hw-gfx-gma-plls.adb
gfxinit-y += hw-gfx-gma-plls.ads
+gfxinit-y += hw-gfx-gma-power_and_clocks.adb
gfxinit-y += hw-gfx-gma-power_and_clocks.ads
-gfxinit-y += hw-gfx-gma-power_and_clocks_skylake.adb
-gfxinit-y += hw-gfx-gma-power_and_clocks_skylake.ads
gfxinit-y += hw-gfx-gma-spll.ads
diff --git a/common/skylake/hw-gfx-gma-power_and_clocks_skylake.adb b/common/skylake/hw-gfx-gma-power_and_clocks.adb
similarity index 98%
rename from common/skylake/hw-gfx-gma-power_and_clocks_skylake.adb
rename to common/skylake/hw-gfx-gma-power_and_clocks.adb
index 15ba76c..4c8b6ac 100644
--- a/common/skylake/hw-gfx-gma-power_and_clocks_skylake.adb
+++ b/common/skylake/hw-gfx-gma-power_and_clocks.adb
@@ -23,7 +23,7 @@
use type HW.Word64;
-package body HW.GFX.GMA.Power_And_Clocks_Skylake is
+package body HW.GFX.GMA.Power_And_Clocks is
type Power_Domain is (MISC_IO, PW1, PW2, DDI_AE, DDI_B, DDI_C, DDI_D);
subtype Power_Well is Power_Domain range PW1 .. PW2;
@@ -395,4 +395,4 @@
end loop;
end Power_Down;
-end HW.GFX.GMA.Power_And_Clocks_Skylake;
+end HW.GFX.GMA.Power_And_Clocks;
diff --git a/common/skylake/hw-gfx-gma-power_and_clocks.ads b/common/skylake/hw-gfx-gma-power_and_clocks.ads
index 98a3bba..e4f2611 100644
--- a/common/skylake/hw-gfx-gma-power_and_clocks.ads
+++ b/common/skylake/hw-gfx-gma-power_and_clocks.ads
@@ -12,7 +12,27 @@
-- GNU General Public License for more details.
--
-with HW.GFX.GMA.Power_And_Clocks_Skylake;
+with HW.GFX.GMA.Config_Helpers;
-private package HW.GFX.GMA.Power_And_Clocks
- renames HW.GFX.GMA.Power_And_Clocks_Skylake;
+private package HW.GFX.GMA.Power_And_Clocks is
+
+ procedure Pre_All_Off;
+ procedure Post_All_Off;
+
+ procedure Initialize;
+
+ procedure Limit_Dotclocks
+ (Configs : in out Pipe_Configs;
+ CDClk_Switch : out Boolean)
+ with
+ Post => Config_Helpers.Stable_FB (Configs'Old, Configs);
+ procedure Update_CDClk (Configs : in out Pipe_Configs)
+ with
+ Post => Config_Helpers.Stable_FB (Configs'Old, Configs);
+ procedure Enable_CDClk is null;
+
+ 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);
+
+end HW.GFX.GMA.Power_And_Clocks;
diff --git a/common/skylake/hw-gfx-gma-power_and_clocks_skylake.ads b/common/skylake/hw-gfx-gma-power_and_clocks_skylake.ads
deleted file mode 100644
index d5b9685..0000000
--- a/common/skylake/hw-gfx-gma-power_and_clocks_skylake.ads
+++ /dev/null
@@ -1,38 +0,0 @@
---
--- Copyright (C) 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; 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.Config_Helpers;
-
-private package HW.GFX.GMA.Power_And_Clocks_Skylake is
-
- procedure Pre_All_Off;
- procedure Post_All_Off;
-
- procedure Initialize;
-
- procedure Limit_Dotclocks
- (Configs : in out Pipe_Configs;
- CDClk_Switch : out Boolean)
- with
- Post => Config_Helpers.Stable_FB (Configs'Old, Configs);
- procedure Update_CDClk (Configs : in out Pipe_Configs)
- with
- Post => Config_Helpers.Stable_FB (Configs'Old, Configs);
- procedure Enable_CDClk is null;
-
- 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);
-
-end HW.GFX.GMA.Power_And_Clocks_Skylake;