git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1513 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Greg Watson 2004-04-17 02:49:43 +00:00
parent 8e0586200b
commit bad27b10c4
10 changed files with 37 additions and 47 deletions

View File

@ -210,18 +210,8 @@ mainboardinit ./auto.inc
dir /pc80
config chip.h
northbridge via/vt8601 "vt8601"
# pci 0:0.0
# pci 0:1.0
southbridge via/vt8231 "vt8231"
# pci 0:11.0
# pci 0:11.1
# pci 0:11.2
# pci 0:11.3
# pci 0:11.4
# pci 0:11.5
# pci 0:11.6
# pci 0:12.0
northbridge via/vt8623 "vt8623"
southbridge via/vt8235 "vt8235"
register "enable_usb" = "0"
register "enable_native_ide" = "0"
register "enable_com_ports" = "1"

View File

@ -10,7 +10,7 @@
#include "pc80/serial.c"
#include "arch/i386/lib/console.c"
#include "ram/ramtest.c"
#include "northbridge/via/vt8601/raminit.h"
#include "northbridge/via/vt8623/raminit.h"
#include "cpu/p6/earlymtrr.c"
/*
@ -26,10 +26,10 @@ void udelay(int usecs)
#include "cpu/p6/boot_cpu.c"
#include "debug.c"
#include "southbridge/via/vt8231/vt8231_early_smbus.c"
#include "southbridge/via/vt8231/vt8235_early_smbus.c"
#include "southbridge/via/vt8231/vt8231_early_serial.c"
#include "southbridge/via/vt8231/vt8235_early_serial.c"
static void memreset_setup(void)
{
}
@ -58,7 +58,7 @@ static void enable_mainboard_devices(void)
device_t dev;
/* dev 0 for southbridge */
dev = pci_locate_device(PCI_ID(0x1106,0x8231), 0);
dev = pci_locate_device(PCI_ID(0x1106,0x8235), 0);
if (dev == PCI_DEV_INVALID) {
die("Southbridge not found!!!\n");
@ -99,7 +99,7 @@ static void main(void)
/* init_timer();*/
outb(5, 0x80);
enable_vt8231_serial();
enable_vt8235_serial();
uart_init();
console_init();

View File

@ -40,6 +40,6 @@ static void enumerate(struct chip *chip)
}
struct chip_control mainboard_via_epia_control = {
.enumerate = enumerate,
.name = "VIA EPIA mainboard ",
.name = "VIA EPIA-M mainboard ",
};

View File

@ -1,5 +1,5 @@
struct northbridge_via_vt8601_config
struct northbridge_via_vt8623_config
{
};
extern struct chip_control northbridge_via_vt8601_control;
extern struct chip_control northbridge_via_vt8623_control;

View File

@ -80,7 +80,7 @@ static void enumerate(struct chip *chip)
static void random_fixup() {
device_t pcidev = dev_find_slot(0, 0);
printk_spew("VT8601 random fixup ...\n");
printk_spew("VT8623 random fixup ...\n");
if (pcidev) {
pci_write_config8(pcidev, 0x70, 0xc0);
pci_write_config8(pcidev, 0x71, 0x88);
@ -95,8 +95,8 @@ static void random_fixup() {
static void northbridge_init(struct chip *chip, enum chip_pass pass)
{
struct northbridge_via_vt8601_config *conf =
(struct northbridge_via_vt8601_config *)chip->chip_info;
struct northbridge_via_vt8623_config *conf =
(struct northbridge_via_vt8623_config *)chip->chip_info;
switch (pass) {
case CONF_PASS_PRE_PCI:
@ -115,8 +115,8 @@ static void northbridge_init(struct chip *chip, enum chip_pass pass)
}
}
struct chip_control northbridge_via_vt8601_control = {
struct chip_control northbridge_via_vt8623_control = {
.enumerate = enumerate,
.enable = northbridge_init,
.name = "VIA vt8601 Northbridge",
.name = "VIA vt8623 Northbridge",
};

View File

@ -1,6 +1,6 @@
#ifndef NORTHBRIDGE_VIA_VT8601_H
#define NORTHBRIDGE_VIA_VT8601_H
#ifndef NORTHBRIDGE_VIA_VT8623_H
#define NORTHBRIDGE_VIA_VT8623_H
extern unsigned int vt8601_scan_root_bus(device_t root, unsigned int max);
extern unsigned int vt8623_scan_root_bus(device_t root, unsigned int max);
#endif /* NORTHBRIDGE_VIA_VT8601_H */
#endif /* NORTHBRIDGE_VIA_VT8623_H */

View File

@ -105,8 +105,8 @@ static void sdram_set_registers(const struct mem_controller *ctrl)
device_t north = (device_t) 0;
uint8_t c, r;
print_err("vt8601 init starting\r\n");
north = pci_locate_device(PCI_ID(0x1106, 0x8601), 0);
print_err("vt8623 init starting\r\n");
north = pci_locate_device(PCI_ID(0x1106, 0x8623), 0);
north = 0;
print_debug_hex32(north);
print_debug(" is the north\n");
@ -389,6 +389,6 @@ static void sdram_enable(int controllers, const struct mem_controller *ctrl)
print_debug(" is the MA type\r\n");
set_ma_mapping(north, slot, ma);
}
print_err("vt8601 done\r\n");
print_err("vt8623 done\r\n");
dumpnorth(north);
}

View File

@ -1,9 +1,9 @@
# Sample config file for EPIA
# This will make a target directory of ./epia.512kflash
# Sample config file for EPIA-M
# This will make a target directory of ./epia-m.512kflash
loadoptions
target epia.512kflash
target epia-m.512kflash
uses ARCH
uses CONFIG_COMPRESS
@ -87,7 +87,7 @@ romimage "normal"
option USE_FALLBACK_IMAGE=0
option ROM_IMAGE_SIZE=0x10000
option LINUXBIOS_EXTRA_VERSION=".0Normal"
mainboard via/epia
mainboard via/epia-m
# payload /usr/share/etherboot/5.1.9pre2-lnxi-lb/tg3--ide_disk.zelf
# payload ../../../../tg3--ide_disk.zelf
payload ../../../../../lnxieepro100.ebi
@ -97,7 +97,7 @@ romimage "fallback"
option USE_FALLBACK_IMAGE=1
option ROM_IMAGE_SIZE=0x10000
option LINUXBIOS_EXTRA_VERSION=".0Fallback"
mainboard via/epia
mainboard via/epia-m
# payload /usr/share/etherboot/5.1.9pre2-lnxi-lb/tg3--ide_disk.zelf
# payload ../../../../tg3--ide_disk.zelf
payload ../../../../../lnxieepro100.ebi

View File

@ -1,9 +1,9 @@
# Sample config file for EPIA
# This will make a target directory of ./epia
# Sample config file for EPIA-M
# This will make a target directory of ./epia-m
loadoptions
target epia
target epia-m
uses ARCH
uses CONFIG_COMPRESS
@ -85,7 +85,7 @@ romimage "normal"
option USE_FALLBACK_IMAGE=0
option ROM_IMAGE_SIZE=0x10000
option LINUXBIOS_EXTRA_VERSION=".0Normal"
mainboard via/epia
mainboard via/epia-m
# payload /usr/share/etherboot/5.1.9pre2-lnxi-lb/tg3--ide_disk.zelf
# payload ../../../../tg3--ide_disk.zelf
# payload ../../../../../lnxieepro100.ebi
@ -96,7 +96,7 @@ romimage "fallback"
option USE_FALLBACK_IMAGE=1
option ROM_IMAGE_SIZE=0x10000
option LINUXBIOS_EXTRA_VERSION=".0Fallback"
mainboard via/epia
mainboard via/epia-m
# payload /usr/share/etherboot/5.1.9pre2-lnxi-lb/tg3--ide_disk.zelf
# payload ../../../../tg3--ide_disk.zelf
# payload ../../../../../lnxieepro100.ebi

View File

@ -1,9 +1,9 @@
# Sample config file for EPIA
# This will make a target directory of ./epia
# Sample config file for EPIA-M
# This will make a target directory of ./epia-m
loadoptions
target epia
target epia-m
uses ARCH
uses CONFIG_COMPRESS
@ -88,7 +88,7 @@ romimage "normal"
option USE_FALLBACK_IMAGE=0
option ROM_IMAGE_SIZE=0x10000
option LINUXBIOS_EXTRA_VERSION=".0Normal"
mainboard via/epia
mainboard via/epia-m
# payload /usr/share/etherboot/5.1.9pre2-lnxi-lb/tg3--ide_disk.zelf
# payload ../../../../tg3--ide_disk.zelf
payload ../../../../../lnxieepro100.ebi
@ -98,7 +98,7 @@ romimage "fallback"
option USE_FALLBACK_IMAGE=1
option ROM_IMAGE_SIZE=0x10000
option LINUXBIOS_EXTRA_VERSION=".0Fallback"
mainboard via/epia
mainboard via/epia-m
# payload /usr/share/etherboot/5.1.9pre2-lnxi-lb/tg3--ide_disk.zelf
# payload ../../../../tg3--ide_disk.zelf
payload ../../../../../lnxieepro100.ebi