diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2012-07-10 13:27:26 +0300 |
---|---|---|
committer | Patrick Georgi <patrick@georgi-clan.de> | 2012-07-16 18:38:46 +0200 |
commit | 63f8c088307c5296809d9499b3b7cbaedb2a4440 (patch) | |
tree | ca18116deb580909d452f42f1c35d2fb6e5f53dd /src/northbridge/amd/amdfam10 | |
parent | d4220691c58934420ad196d4a0903dc88388ae85 (diff) |
Add global uma_resource()
Like ram_resource(), but reserved and not cacheable.
Switch all AMD northbridges to use this one.
Change-Id: I88515c6a0f59f80fd8607c390d0d4a2a35d805f2
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/1203
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/northbridge/amd/amdfam10')
-rw-r--r-- | src/northbridge/amd/amdfam10/northbridge.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/northbridge/amd/amdfam10/northbridge.c b/src/northbridge/amd/amdfam10/northbridge.c index 3b20684e75..dd2a9aff16 100644 --- a/src/northbridge/amd/amdfam10/northbridge.c +++ b/src/northbridge/amd/amdfam10/northbridge.c @@ -849,18 +849,6 @@ static void disable_hoist_memory(unsigned long hole_startk, int node_id) #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) @@ -1090,7 +1078,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) { |