gma: Add a HW.PCI.Dev for dynamic MMIO setup
Remove `MMIO_Base` option from Initialize() and try to derive it
using libhwbase' PCI mechanism instead.
Change-Id: Iacd4d098954bb96c1c6b40fdfb2636191d9517c7
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/20600
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
diff --git a/common/hw-gfx-gma-registers.ads b/common/hw-gfx-gma-registers.ads
index e526417..63df8be 100644
--- a/common/hw-gfx-gma-registers.ads
+++ b/common/hw-gfx-gma-registers.ads
@@ -1541,10 +1541,10 @@
Post => True;
pragma Warnings (On, "declaration of ""Write_GTT"" hides one at *");
- procedure Set_Register_Base (Base : Word64)
+ procedure Set_Register_Base (Base : Word64; GTT_Base : Word64 := 0)
with
Global => (Output => Address_State),
- Depends => (Address_State => Base),
+ Depends => (Address_State => (Base, GTT_Base)),
Pre => True,
Post => True;