diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2010-04-22 18:15:32 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2010-04-22 18:15:32 +0000 |
commit | f75b19ac85ccfffba5eca37700d4c705b24a355e (patch) | |
tree | 4e1c0a547389cdc1ec5ba57f89f252a3dc7010de /src/mainboard/via/epia-m/romstage.c | |
parent | 64d3baf9829baf9285c94cae0406ee0f428c04c0 (diff) |
via epia-m now works with default x86.c instead of its own copy of vgabios.c.
Allows to drop quite a bunch of nasty code
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5478 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard/via/epia-m/romstage.c')
-rw-r--r-- | src/mainboard/via/epia-m/romstage.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/mainboard/via/epia-m/romstage.c b/src/mainboard/via/epia-m/romstage.c index 3cc82834a0..6a8446ac04 100644 --- a/src/mainboard/via/epia-m/romstage.c +++ b/src/mainboard/via/epia-m/romstage.c @@ -30,7 +30,7 @@ static void enable_mainboard_devices(void) { device_t dev; - dev = pci_locate_device(PCI_ID(PCI_VENDOR_ID_VIA, + dev = pci_locate_device_on_bus(PCI_ID(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8235), 0); if (dev == PCI_DEV_INVALID) { @@ -82,7 +82,7 @@ static void main(unsigned long bist) * Disable the firewire stuff, which apparently steps on IO 0+ on * reset. Doh! */ - dev = pci_locate_device(PCI_ID(PCI_VENDOR_ID_VIA, + dev = pci_locate_device_on_bus(PCI_ID(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_6305), 0); if (dev != PCI_DEV_INVALID) { pci_write_config8(dev, 0x15, 0x1c); @@ -94,14 +94,12 @@ static void main(unsigned long bist) enable_smbus(); - print_spew("In romstage.c:main()\n"); - /* Halt if there was a built in self test failure */ report_bist_failure(bist); // init_timer(); - outb(5, 0x80); + post_code(0x05); print_debug(" Enabling mainboard devices\n"); enable_mainboard_devices(); @@ -113,18 +111,11 @@ static void main(unsigned long bist) /* Check all of memory */ #if 0 - ram_check(0x00000000, msr.lo); -#endif -#if 0 static const struct { unsigned long lo, hi; } check_addrs[] = { /* Check 16MB of memory @ 0*/ { 0x00000000, 0x01000000 }, -#if TOTAL_CPUS > 1 - /* Check 16MB of memory @ 2GB */ - { 0x80000000, 0x81000000 }, -#endif }; int i; for(i = 0; i < ARRAY_SIZE(check_addrs); i++) { |