- First stab at running linuxbios without the old static device tree.
[coreboot.git] / src / mainboard / amd / quartet / mainboard.c
1 #include <console/console.h>
2 #include <device/device.h>
3 #include <device/pci.h>
4 #include <device/pci_ids.h>
5 #include <device/pci_ops.h>
6
7 #include <arch/io.h>
8 #include "../../../northbridge/amd/amdk8/northbridge.h"
9 #include "chip.h"
10
11 unsigned long initial_apicid[CONFIG_MAX_CPUS] =
12 {
13         0, 1, 2, 3,
14 };
15
16 static struct device_operations mainboard_operations = {
17         .read_resources   = root_dev_read_resources,
18         .set_resources    = root_dev_set_resources,
19         .enable_resources = enable_childrens_resources,
20         .init             = 0,
21         .scan_bus         = amdk8_scan_root_bus,
22         .enable           = 0,
23 };
24
25 static void enumerate(struct chip *chip)
26 {
27         struct chip *child;
28
29         if (chip->control && chip->control->name) {
30                 printk_debug("Enumerating: %s\n", chip->control->name);
31         }
32
33         dev_root.ops = &mainboard_operations;
34         chip->dev = &dev_root;
35         chip->bus = 0;
36         for (child = chip->children; child; child = child->next) {
37                 child->bus = &dev_root.link[0];
38         }
39 }
40
41 struct chip_control mainboard_amd_quartet_control = {
42         .enumerate = enumerate, 
43         .name      = "AMD Quartet mainboard ",
44 };