[coreboot] [commit] r6148 - trunk/src/northbridge/amd/amdfam10

repository service svn at coreboot.org
Tue Dec 7 20:34:02 CET 2010


Author: myles
Date: Tue Dec  7 20:34:01 2010
New Revision: 6148
URL: https://tracker.coreboot.org/trac/coreboot/changeset/6148

Log:
Move MMCONF resource into the domain for fam10 for the resource allocator.

Signed-off-by: Myles Watson <mylesgw at gmail.com>
Acked-by: Scott Duplichan <scott at notabs.org>

Modified:
   trunk/src/northbridge/amd/amdfam10/northbridge.c

Modified: trunk/src/northbridge/amd/amdfam10/northbridge.c
==============================================================================
--- trunk/src/northbridge/amd/amdfam10/northbridge.c	Tue Dec  7 20:16:07 2010	(r6147)
+++ trunk/src/northbridge/amd/amdfam10/northbridge.c	Tue Dec  7 20:34:01 2010	(r6148)
@@ -684,6 +684,13 @@
 		resource->flags = IORESOURCE_MEM;
 	}
 #endif
+#if CONFIG_MMCONF_SUPPORT
+	struct resource *res = new_resource(dev, 0xc0010058);
+	res->base = CONFIG_MMCONF_BASE_ADDRESS;
+	res->size = CONFIG_MMCONF_BUS_NUMBER * 4096*256;
+	res->flags = IORESOURCE_MEM | IORESOURCE_RESERVE |
+		IORESOURCE_FIXED | IORESOURCE_STORED |  IORESOURCE_ASSIGNED;
+#endif
 }
 
 static u32 my_find_pci_tolm(struct bus *bus, u32 tolm)
@@ -1447,13 +1454,6 @@
 
 static void cpu_bus_read_resources(device_t dev)
 {
-#if CONFIG_MMCONF_SUPPORT
-	struct resource *resource = new_resource(dev, 0xc0010058);
-	resource->base = CONFIG_MMCONF_BASE_ADDRESS;
-	resource->size = CONFIG_MMCONF_BUS_NUMBER * 4096*256;
-	resource->flags = IORESOURCE_MEM | IORESOURCE_RESERVE |
-		IORESOURCE_FIXED | IORESOURCE_STORED |  IORESOURCE_ASSIGNED;
-#endif
 }
 
 static void cpu_bus_set_resources(device_t dev)




More information about the coreboot mailing list