summaryrefslogtreecommitdiff
path: root/src/northbridge/intel
diff options
context:
space:
mode:
authorDustin Harrison <dustin.harrison@sutus.com>2011-05-12 18:31:27 +0200
committerNoe Rubinstein <nrubinstein@proformatique.com>2011-06-23 10:38:59 +0200
commit8fbf211b29d8eb85a566e2b39811470c0f22ca45 (patch)
tree3f1d04cfacf3f604385252d8f6d9345e4a9d67ff /src/northbridge/intel
parente027ef098167de6c76325ee1fd0e1a0f71027ffb (diff)
Add MMCONF support and set as default.
Signed-off-by: Dustin Harrison <dustin.harrison@sutus.com> ---
Diffstat (limited to 'src/northbridge/intel')
-rw-r--r--src/northbridge/intel/i3100/i3100.h4
-rw-r--r--src/northbridge/intel/i3100/northbridge.c6
2 files changed, 9 insertions, 1 deletions
diff --git a/src/northbridge/intel/i3100/i3100.h b/src/northbridge/intel/i3100/i3100.h
index 9fb2996ed..231db9e17 100644
--- a/src/northbridge/intel/i3100/i3100.h
+++ b/src/northbridge/intel/i3100/i3100.h
@@ -20,6 +20,10 @@
#ifndef __I3100_H__
#define __I3100_H__
+/* Northbridge BAR */
+#define DEFAULT_PCIEXBAR CONFIG_MMCONF_BASE_ADDRESS
+
+/* Northbridge register map */
#define IURBASE 0X14
#define MCHCFG0 0X50
#define MCHSCRB 0X52
diff --git a/src/northbridge/intel/i3100/northbridge.c b/src/northbridge/intel/i3100/northbridge.c
index acd4c3c30..d79465f31 100644
--- a/src/northbridge/intel/i3100/northbridge.c
+++ b/src/northbridge/intel/i3100/northbridge.c
@@ -150,7 +150,11 @@ static struct device_operations pci_domain_ops = {
.enable_resources = NULL,
.init = NULL,
.scan_bus = i3100_domain_scan_bus,
+#if CONFIG_MMCONF_SUPPORT_DEFAULT
+ .ops_pci_bus = &pci_ops_mmconf,
+#else
.ops_pci_bus = &pci_cf8_conf1, /* Do we want to use the memory mapped space here? */
+#endif
};
static void mc_read_resources(device_t dev)
@@ -160,7 +164,7 @@ static void mc_read_resources(device_t dev)
pci_dev_read_resources(dev);
resource = new_resource(dev, 0xcf);
- resource->base = 0xe0000000;
+ resource->base = DEFAULT_PCIEXBAR;
resource->size = max_bus * 4096*256;
resource->flags = IORESOURCE_MEM | IORESOURCE_FIXED | IORESOURCE_STORED | IORESOURCE_ASSIGNED;
}