diff options
author | Ronald G. Minnich <rminnich@gmail.com> | 2003-07-25 04:32:42 +0000 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2003-07-25 04:32:42 +0000 |
commit | 35cce551c4c60d7df4ab099070e684279dddff3c (patch) | |
tree | 3e9f3723d59360a466b86e91f7ad463e13588ea1 /src/mainboard/tyan/s2880/mainboard.c | |
parent | ebb645a9fb5d81a8ea701fd53a2bf63bb899d51c (diff) | |
download | coreboot-35cce551c4c60d7df4ab099070e684279dddff3c.tar.xz |
Mods for YhLu to enable calls for mainboard init.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1038 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard/tyan/s2880/mainboard.c')
-rw-r--r-- | src/mainboard/tyan/s2880/mainboard.c | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/src/mainboard/tyan/s2880/mainboard.c b/src/mainboard/tyan/s2880/mainboard.c index c4f7cf8015..7e037c5cd4 100644 --- a/src/mainboard/tyan/s2880/mainboard.c +++ b/src/mainboard/tyan/s2880/mainboard.c @@ -1,9 +1,11 @@ #include <console/console.h> #include <device/device.h> +#include <device/chip.h> #include <device/pci.h> #include <device/pci_ids.h> #include <device/pci_ops.h> -#include <part/mainboard.h> +#include "chip.h" +//#include <part/mainboard.h> //#include "lsi_scsi.c" unsigned long initial_apicid[MAX_CPUS] = { @@ -103,12 +105,23 @@ static void onboard_scsi_fixup(void) */ } -void mainboard_fixup(void) + +static void +enable(struct chip *chip, enum chip_pass pass) { - printk_debug("Enter mainboard_fixup\r\n"); -// onboard_device_fixup - onboard_scsi_fixup(); - printk_debug("mainboard fixup done\r\n"); + + struct mainboard_tyan_s2880_config *conf = + (struct mainboard_tyan_s2880_config *)chip->chip_info; + + switch (pass) { + default: break; + case CONF_PASS_PRE_BOOT: + if (conf->fixup_scsi) + onboard_scsi_fixup(); + printk_debug("mainboard fixup pass %d done\r\n", + pass); + break; + } } void final_mainboard_fixup(void) @@ -118,3 +131,8 @@ void final_mainboard_fixup(void) #endif } +struct chip_control mainboard_tyan_s2880_control = { + enable: enable, + name: "Tyan s2880 mainboard " +}; + |