summaryrefslogtreecommitdiff
path: root/src/mainboard/newisys/khepri/mainboard.c
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@openbios.org>2003-10-24 13:53:33 +0000
committerStefan Reinauer <stepan@openbios.org>2003-10-24 13:53:33 +0000
commite4436bd7f640170c03798914baa2c47690df5e61 (patch)
tree4e30ab2bcf5fcb034a52708f908631b92142bd7d /src/mainboard/newisys/khepri/mainboard.c
parenta9974e584cb6fa9baabc89145920403b98fbc930 (diff)
retightening khepri after last hdama changes
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1230 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard/newisys/khepri/mainboard.c')
-rw-r--r--src/mainboard/newisys/khepri/mainboard.c34
1 files changed, 20 insertions, 14 deletions
diff --git a/src/mainboard/newisys/khepri/mainboard.c b/src/mainboard/newisys/khepri/mainboard.c
index 88c5977cbb..5e58ebcd18 100644
--- a/src/mainboard/newisys/khepri/mainboard.c
+++ b/src/mainboard/newisys/khepri/mainboard.c
@@ -6,6 +6,7 @@
#include <arch/io.h>
#include <device/chip.h>
+#include "../../../northbridge/amd/amdk8/northbridge.h"
#include "chip.h"
@@ -14,22 +15,27 @@ unsigned long initial_apicid[CONFIG_MAX_CPUS] =
0, 1,
};
-static void
-enable(struct chip *chip, enum chip_pass pass)
-{
-
- struct mainboard_newisys_khepri_config *conf =
- (struct mainboard_newisys_khepri_config *)chip->chip_info;
-
- switch (pass) {
- default: break;
- case CONF_PASS_PRE_BOOT:
- break;
- }
+static struct device_operations mainboard_operations = {
+ .read_resources = root_dev_read_resources,
+ .set_resources = root_dev_set_resources,
+ .enable_resources = enable_childrens_resources,
+ .init = 0,
+ .scan_bus = amdk8_scan_root_bus,
+ .enable = 0,
+};
+static void enumerate(struct chip *chip)
+{
+ struct chip *child;
+ dev_root.ops = &mainboard_operations;
+ chip->dev = &dev_root;
+ chip->bus = 0;
+ for(child = chip->children; child; child = child->next) {
+ child->bus = &dev_root.link[0];
+ }
}
struct chip_control mainboard_newisys_khepri_control = {
- enable: enable,
- name: "Newisys Khepri mainboard "
+ .enumerate = enumerate,
+ .name = "Newisys Khepri mainboard ",
};