summaryrefslogtreecommitdiff
path: root/src/northbridge/intel
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2012-07-11 07:55:21 +0300
committerPatrick Georgi <patrick@georgi-clan.de>2012-07-16 18:41:46 +0200
commitcc55b9b9199657834a946ea2de059c3fab3e3b10 (patch)
tree732d9757212623855ba25e0d925d292d441b5098 /src/northbridge/intel
parent63f8c088307c5296809d9499b3b7cbaedb2a4440 (diff)
downloadcoreboot-cc55b9b9199657834a946ea2de059c3fab3e3b10.tar.xz
Define global uma_memory variables
Use of the uma_memory_base and _size variables is very scattered. Implementation of setup_uma_memory() will appear in each northbridge. It should be possible to do this setup entirely in northbridge code and get rid of the globals in a follow-up. Change-Id: I07ccd98c55a6bcaa8294ad9704b88d7afb341456 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/1204 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/northbridge/intel')
-rw-r--r--src/northbridge/intel/i82810/northbridge.c3
-rw-r--r--src/northbridge/intel/i82830/northbridge.c3
-rw-r--r--src/northbridge/intel/i945/northbridge.c3
-rw-r--r--src/northbridge/intel/sandybridge/northbridge.c3
-rw-r--r--src/northbridge/intel/sch/northbridge.c3
5 files changed, 0 insertions, 15 deletions
diff --git a/src/northbridge/intel/i82810/northbridge.c b/src/northbridge/intel/i82810/northbridge.c
index 78e37285f7..3337417460 100644
--- a/src/northbridge/intel/i82810/northbridge.c
+++ b/src/northbridge/intel/i82810/northbridge.c
@@ -62,9 +62,6 @@ static const struct pci_driver i810e_northbridge_driver __pci_driver = {
.device = 0x7124,
};
-/* IGD UMA memory */
-uint64_t uma_memory_base=0, uma_memory_size=0;
-
int add_northbridge_resources(struct lb_memory *mem)
{
printk(BIOS_DEBUG, "Adding IGD UMA memory area\n");
diff --git a/src/northbridge/intel/i82830/northbridge.c b/src/northbridge/intel/i82830/northbridge.c
index 93bdc28196..22f59dc313 100644
--- a/src/northbridge/intel/i82830/northbridge.c
+++ b/src/northbridge/intel/i82830/northbridge.c
@@ -52,9 +52,6 @@ static const struct pci_driver northbridge_driver __pci_driver = {
.device = 0x3575,
};
-/* IGD memory */
-uint64_t uma_memory_base=0, uma_memory_size=0;
-
int add_northbridge_resources(struct lb_memory *mem)
{
printk(BIOS_DEBUG, "Adding IGD UMA memory area\n");
diff --git a/src/northbridge/intel/i945/northbridge.c b/src/northbridge/intel/i945/northbridge.c
index 40b1aaac96..58e70d7fa0 100644
--- a/src/northbridge/intel/i945/northbridge.c
+++ b/src/northbridge/intel/i945/northbridge.c
@@ -68,9 +68,6 @@ static int get_pcie_bar(u32 *base, u32 *len)
return 0;
}
-/* IDG memory */
-uint64_t uma_memory_base=0, uma_memory_size=0;
-
static void add_fixed_resources(struct device *dev, int index)
{
struct resource *resource;
diff --git a/src/northbridge/intel/sandybridge/northbridge.c b/src/northbridge/intel/sandybridge/northbridge.c
index 6419f8ce17..b261c9d805 100644
--- a/src/northbridge/intel/sandybridge/northbridge.c
+++ b/src/northbridge/intel/sandybridge/northbridge.c
@@ -118,9 +118,6 @@ static int get_pcie_bar(u32 *base, u32 *len)
return 0;
}
-/* IDG memory */
-uint64_t uma_memory_base=0, uma_memory_size=0;
-
static void add_fixed_resources(struct device *dev, int index)
{
struct resource *resource;
diff --git a/src/northbridge/intel/sch/northbridge.c b/src/northbridge/intel/sch/northbridge.c
index 57245b6bed..047d7dabc5 100644
--- a/src/northbridge/intel/sch/northbridge.c
+++ b/src/northbridge/intel/sch/northbridge.c
@@ -73,9 +73,6 @@ static int get_pcie_bar(u32 *base, u32 *len)
return 0;
}
-/* IDG memory */
-u64 uma_memory_base = 0, uma_memory_size = 0;
-
static void add_fixed_resources(struct device *dev, int index)
{
struct resource *resource;