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/mainboard.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/mainboard.c')
-rw-r--r-- | src/mainboard/via/epia-m/mainboard.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/mainboard/via/epia-m/mainboard.c b/src/mainboard/via/epia-m/mainboard.c index 43e11d30ba..2e517a36b7 100644 --- a/src/mainboard/via/epia-m/mainboard.c +++ b/src/mainboard/via/epia-m/mainboard.c @@ -1,40 +1,5 @@ -#include <console/console.h> #include <device/device.h> -#include <device/pci.h> -#include <device/pci_ids.h> -#include <device/pci_ops.h> -#include <arch/io.h> #include "chip.h" -#include "vgachip.h" - -static void vga_fixup(void) { - // we do this right here because: - // - all the hardware is working, and some VGA bioses seem to need - // that - // - we need page 0 below for coreboot tables. - - printk(BIOS_DEBUG, "INSTALL REAL-MODE IDT\n"); - setup_realmode_idt(); - printk(BIOS_DEBUG, "DO THE VGA BIOS\n"); - do_vgabios(); - post_code(0x93); - vga_enable_console(); -} - -void write_protect_vgabios(void) -{ - device_t dev; - - printk(BIOS_INFO, "write_protect_vgabios\n"); - /* there are two possible devices. Just do both. */ - dev = dev_find_device(PCI_VENDOR_ID_VIA, 0x3122, 0); - if(dev) - pci_write_config8(dev, 0x61, 0xaa); - - dev = dev_find_device(PCI_VENDOR_ID_VIA, 0x3123, 0); - if(dev) - pci_write_config8(dev, 0x61, 0xaa); -} struct chip_operations mainboard_ops = { CHIP_NAME("VIA EPIA-M Mainboard") |