intel/e7505: Fix domain resources

Fixed resources have to be registered early during
read_resources() phase, such that device allocator
will avoid them.

Change-Id: I3c120cfb96c185f0052b9b3cdd93eeed0f712491
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/26770
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
diff --git a/src/northbridge/intel/e7505/northbridge.c b/src/northbridge/intel/e7505/northbridge.c
index 38c7d46..ea8b459 100644
--- a/src/northbridge/intel/e7505/northbridge.c
+++ b/src/northbridge/intel/e7505/northbridge.c
@@ -29,11 +29,13 @@
 	return current;
 }
 
-static void pci_domain_set_resources(struct device *dev)
+static void mch_domain_read_resources(struct device *dev)
 {
 	struct device *mc_dev;
 	uint32_t pci_tolm;
 
+	pci_domain_read_resources(dev);
+
 	pci_tolm = find_pci_tolm(dev->link_list);
 	mc_dev = dev->link_list->children;
 	if (mc_dev) {
@@ -107,6 +109,10 @@
 
 		set_late_cbmem_top(tolmk * 1024);
 	}
+}
+
+static void mch_domain_set_resources(struct device *dev)
+{
 	assign_resources(dev->link_list);
 }
 
@@ -122,8 +128,8 @@
 };
 
 static struct device_operations pci_domain_ops = {
-	.read_resources   = pci_domain_read_resources,
-	.set_resources    = pci_domain_set_resources,
+	.read_resources   = mch_domain_read_resources,
+	.set_resources    = mch_domain_set_resources,
 	.enable_resources = NULL,
 	.init             = NULL,
 	.scan_bus         = pci_domain_scan_bus,