diff options
Diffstat (limited to 'src/northbridge/amd/agesa/family10')
-rw-r--r-- | src/northbridge/amd/agesa/family10/northbridge.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/northbridge/amd/agesa/family10/northbridge.c b/src/northbridge/amd/agesa/family10/northbridge.c index 7b73987e40..3a1eb7ba04 100644 --- a/src/northbridge/amd/agesa/family10/northbridge.c +++ b/src/northbridge/amd/agesa/family10/northbridge.c @@ -910,18 +910,6 @@ static struct hw_mem_hole_info get_hw_mem_hole_info(void) #if CONFIG_GFXUMA extern uint64_t uma_memory_base, uma_memory_size; - -static void add_uma_resource(struct device *dev, int index) -{ - struct resource *resource; - - printk(BIOS_DEBUG, "Adding UMA memory area\n"); - resource = new_resource(dev, index); - resource->base = (resource_t) uma_memory_base; - resource->size = (resource_t) uma_memory_size; - resource->flags = IORESOURCE_MEM | IORESOURCE_RESERVE | - IORESOURCE_FIXED | IORESOURCE_STORED | IORESOURCE_ASSIGNED; -} #endif static void amdfam10_domain_set_resources(device_t dev) @@ -1102,7 +1090,7 @@ static void amdfam10_domain_set_resources(device_t dev) } #if CONFIG_GFXUMA - add_uma_resource(dev, 7); + uma_resource(dev, 7, uma_memory_base >> 10, uma_memory_size >> 10); #endif for(link = dev->link_list; link; link = link->next) { |