drivers/xgi: Fix legacy VGA text mode initialization

TEST: Booted KFSN4-DRE with on-board XGI Volari Z9s
Initial text from coreboot appeared, and the Linux
console was displayed immediately at the start of
kernel initialization.  After boot was complete
the text mode console continued to behave normally.

SeaBIOS does not currently make use of the legacy
VGA text-mode display.

Change-Id: I2177a1d00e6f07db661dd99fe0184e2c228404d1
Signed-off-by: Timothy Pearson <tpearson@raptorengineeringinc.com>
Reviewed-on: http://review.coreboot.org/8360
Tested-by: build bot (Jenkins)
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
diff --git a/src/drivers/xgi/z9s/z9s.c b/src/drivers/xgi/z9s/z9s.c
index 095489e..eaf04df 100644
--- a/src/drivers/xgi/z9s/z9s.c
+++ b/src/drivers/xgi/z9s/z9s.c
@@ -31,6 +31,15 @@
 #include "../common/xgi_coreboot.h"
 #include "../common/XGIfb.h"
 
+static void xgi_z9s_set_resources(device_t dev)
+{
+	/* Reserve VGA regions */
+	mmio_resource(dev, 3, 0xa0000 >> 10, 0x1ffff >> 10);
+
+	/* Run standard resource set routine */
+	pci_dev_set_resources(dev);
+}
+
 static void xgi_z9s_init(struct device *dev)
 {
 	u8 ret;
@@ -46,7 +55,7 @@
 
 static struct device_operations xgi_z9s_ops  = {
 	.read_resources   = pci_dev_read_resources,
-	.set_resources    = pci_dev_set_resources,
+	.set_resources    = xgi_z9s_set_resources,
 	.enable_resources = pci_dev_enable_resources,
 	.init             = xgi_z9s_init,
 	.scan_bus         = 0,