diff options
author | Bari Ari <bari@onelabs.com> | 2008-09-01 01:48:07 +0000 |
---|---|---|
committer | Peter Stuge <peter@stuge.se> | 2008-09-01 01:48:07 +0000 |
commit | d4759d0f22892cc740d5aae559eaf5b9b5ab735a (patch) | |
tree | adbd541327d47654590814029eb3493d2e5deef3 /src/northbridge/via/cn700 | |
parent | 3153863567f51c9173227b9cb4375d53e6f3e6ed (diff) |
This patch gets the Epia-CN working without ACPI or APIC.
All devices work, no irq storms. Enjoy.
Signed-off-by: Bari Ari <bari@onelabs.com>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3556 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/northbridge/via/cn700')
-rw-r--r-- | src/northbridge/via/cn700/raminit.c | 2 | ||||
-rw-r--r-- | src/northbridge/via/cn700/vga.c | 10 |
2 files changed, 4 insertions, 8 deletions
diff --git a/src/northbridge/via/cn700/raminit.c b/src/northbridge/via/cn700/raminit.c index 3a70e37440..20efdea8cd 100644 --- a/src/northbridge/via/cn700/raminit.c +++ b/src/northbridge/via/cn700/raminit.c @@ -366,7 +366,7 @@ static void sdram_set_registers(const struct mem_controller *ctrl) /* dram duty control */ pci_write_config8(ctrl->d0f3, 0xed, 0x10); - /* SMM and APIC deocoding, we donot use SMM */ + /* SMM and APIC decoding, we do not use SMM */ reg = 0x29; pci_write_config8(ctrl->d0f3, 0x86, reg); /* SMM and APIC decoding mirror */ diff --git a/src/northbridge/via/cn700/vga.c b/src/northbridge/via/cn700/vga.c index 15756841fd..f00f18dda0 100644 --- a/src/northbridge/via/cn700/vga.c +++ b/src/northbridge/via/cn700/vga.c @@ -45,14 +45,12 @@ static void vga_init(device_t dev) u8 reg8; print_debug("Copying BOCHS Bios to 0xf000\n"); -/* Copy the BOCHs BIOS from 0xFFFFFFFF - ROM_SIZE - BOCHs size (64k) to 0xf0000 - This is for compatibility with the VGA ROM's BIOS callbacks */ - memcpy(0xf0000, (0xFFFFFFFF - ROM_SIZE - 0x10000), 0x10000); + /* Copy BOCHS BIOS from 4G-ROM_SIZE-64k (in flash) to 0xf0000 (in RAM) + * This is for compatibility with the VGA ROM's BIOS callbacks */ + memcpy(0xf0000, (0xffffffff - ROM_SIZE - 0xffff), 0x10000); printk_debug("Initializing VGA\n"); - pci_write_config8(dev, 0x3c, 0xb); - /* Set memory rate to 200MHz */ outb(0x3d, CRTM_INDEX); reg8 = inb(CRTM_DATA); @@ -71,8 +69,6 @@ static void vga_init(device_t dev) pci_write_config8(dev, 0x0d, 0x20); pci_write_config32(dev,0x10, 0xf4000008); pci_write_config32(dev,0x14, 0xfb000000); - pci_write_config8(dev, 0x3e, 0x02); - pci_write_config8(dev, 0x3c, 0x0a); printk_debug("INSTALL REAL-MODE IDT\n"); |