gma: Add parameter to Scan_Ports to limit number of pipes
In some configurations (e.g. textmode) we know that we'll only enable
a limited number of pipes. So let's skip additional port probing in
Scan_Ports() that would only waste time otherwise.
Change-Id: I496e84cfe8bb170a6b500f64461db4c837c439fd
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.coreboot.org/17278
Tested-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
diff --git a/common/hw-gfx-gma.ads b/common/hw-gfx-gma.ads
index ed240ca..8967ee8 100644
--- a/common/hw-gfx-gma.ads
+++ b/common/hw-gfx-gma.ads
@@ -80,7 +80,8 @@
procedure Scan_Ports
(Configs : out Configs_Type;
- Ports : in Port_List);
+ Ports : in Port_List;
+ Max_Pipe : in Config_Index := Config_Index'Last);
procedure Auto_Configure
(Configs : in out Configs_Type;
Keep_Power : in Boolean := False);