- Add a new chip northbridge/amd/amdk8/root_complex
- Moving the functionality around in northbridge/amd/amdk8/northbridge.c to put the pci_domain and the apic bus on the root_complex. Everything else remains with the individual northbridges. git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1749 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <bitops.h>
|
#include <bitops.h>
|
||||||
#include <cpu/cpu.h>
|
#include <cpu/cpu.h>
|
||||||
#include "chip.h"
|
#include "root_complex/chip.h"
|
||||||
#include "northbridge.h"
|
#include "northbridge.h"
|
||||||
#include "amdk8.h"
|
#include "amdk8.h"
|
||||||
|
|
||||||
@@ -488,6 +488,11 @@ static struct pci_driver mcf0_driver __pci_driver = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
struct chip_operations northbridge_amd_amdk8_ops = {
|
||||||
|
CHIP_NAME("AMD K8 Northbridge")
|
||||||
|
.enable_dev = 0,
|
||||||
|
};
|
||||||
|
|
||||||
static void pci_domain_read_resources(device_t dev)
|
static void pci_domain_read_resources(device_t dev)
|
||||||
{
|
{
|
||||||
struct resource *resource;
|
struct resource *resource;
|
||||||
@@ -712,7 +717,7 @@ static struct device_operations cpu_bus_ops = {
|
|||||||
.scan_bus = cpu_bus_scan,
|
.scan_bus = cpu_bus_scan,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void enable_dev(struct device *dev)
|
static void root_complex_enable_dev(struct device *dev)
|
||||||
{
|
{
|
||||||
/* Set the operations if it is a special bus type */
|
/* Set the operations if it is a special bus type */
|
||||||
if (dev->path.type == DEVICE_PATH_PCI_DOMAIN) {
|
if (dev->path.type == DEVICE_PATH_PCI_DOMAIN) {
|
||||||
@@ -724,7 +729,7 @@ static void enable_dev(struct device *dev)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct chip_operations northbridge_amd_amdk8_ops = {
|
struct chip_operations northbridge_amd_amdk8_root_complex_ops = {
|
||||||
CHIP_NAME("AMD K8 Northbridge")
|
CHIP_NAME("AMD K8 Root Complex")
|
||||||
.enable_dev = enable_dev,
|
.enable_dev = root_complex_enable_dev,
|
||||||
};
|
};
|
||||||
|
1
src/northbridge/amd/amdk8/root_complex/Config.lb
Normal file
1
src/northbridge/amd/amdk8/root_complex/Config.lb
Normal file
@@ -0,0 +1 @@
|
|||||||
|
config chip.h
|
5
src/northbridge/amd/amdk8/root_complex/chip.h
Normal file
5
src/northbridge/amd/amdk8/root_complex/chip.h
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
struct northbridge_amd_amdk8_root_complex_config
|
||||||
|
{
|
||||||
|
};
|
||||||
|
|
||||||
|
extern struct chip_operations northbridge_amd_amdk8_root_complex_ops;
|
Reference in New Issue
Block a user