mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
supertek st3wt support
This commit is contained in:
parent
c1896f5351
commit
9c0a834d6d
3 changed files with 150 additions and 0 deletions
81
src/mainboard/supertek/st3wt/Config
Normal file
81
src/mainboard/supertek/st3wt/Config
Normal file
|
@ -0,0 +1,81 @@
|
|||
# Copyright (c) 2002 Christer Weinigel <wingel@hack.org>
|
||||
|
||||
# This is a config file for the supertek st3wt (cloned from cocom voyager2)
|
||||
|
||||
# The board is a National Semiconductor GX1 + CS5530 + PC93917
|
||||
# design. It is a fairly complete PC with VGA, one serial port, one
|
||||
# IrDA header, one parallel port, two USB ports, a PS/2 Keyboard
|
||||
# connector (can also be used for a PS/2 Mouse using a splitter
|
||||
# cable), floppy, IDE and finally one ethernet port using a RTL8139
|
||||
# ethernet chip. Other than that the board has a DiskOnChip socket
|
||||
# and a PC104 connector for expansion.
|
||||
|
||||
arch i386
|
||||
cpu p5
|
||||
mainboardinit cpu/i386/entry16.inc
|
||||
mainboardinit cpu/i386/entry32.inc
|
||||
ldscript cpu/i386/entry16.lds
|
||||
ldscript cpu/i386/entry32.lds
|
||||
mainboardinit cpu/i386/reset16.inc
|
||||
ldscript cpu/i386/reset16.lds
|
||||
|
||||
########################################################################
|
||||
|
||||
mainboardinit superio/NSC/pc97317/sio_setup.inc
|
||||
mainboardinit pc80/serial.inc
|
||||
mainboardinit arch/i386/lib/console.inc
|
||||
|
||||
########################################################################
|
||||
|
||||
northbridge nsc/gx1
|
||||
southbridge nsc/cs5530
|
||||
superio NSC/pc97317
|
||||
|
||||
########################################################################
|
||||
# Lots of constans, you probably don't need to change anything here.
|
||||
|
||||
# GX_BASE is the address of a configuration memory region for the GX1
|
||||
# processor. You probably don't want to change this.
|
||||
option GX_BASE=0x40000000
|
||||
|
||||
########################################################################
|
||||
# Super I/O configuration
|
||||
|
||||
# The SIO is pin strapped to show up at address 0x2e
|
||||
option SIO_BASE=0x2e
|
||||
|
||||
# Serial Port 1
|
||||
option SIO_SP1_BASE=0x3f8
|
||||
option SIO_SP1_IRQ=4
|
||||
|
||||
# Serial Port 2 is connected to an IrDA header
|
||||
#option SIO_SP2_BASE=0x2f8
|
||||
#option SIO_SP2_IRQ=3
|
||||
|
||||
# Parallel port
|
||||
option SIO_PP_BASE=0x278
|
||||
option SIO_PP_IRQ=7
|
||||
|
||||
# GPIO Pins
|
||||
option SIO_GPIO_BASE=0xe0
|
||||
|
||||
########################################################################
|
||||
# Southbridge configuration
|
||||
|
||||
option CS5530_INTA=9
|
||||
option CS5530_INTB=10
|
||||
option CS5530_INTC=11
|
||||
option CS5530_INTD=15
|
||||
|
||||
option CS5530_PRIMARY_IDE=1
|
||||
#option CS5530_SECONDARY_IDE=1
|
||||
|
||||
########################################################################
|
||||
|
||||
option NO_KEYBOARD
|
||||
option FINAL_MAINBOARD_FIXUP=1
|
||||
object mainboard.o
|
||||
|
||||
# Local variables:
|
||||
# compile-command: "make -C /export/bios/voyager2"
|
||||
# End:
|
21
src/mainboard/supertek/st3wt/config.example
Normal file
21
src/mainboard/supertek/st3wt/config.example
Normal file
|
@ -0,0 +1,21 @@
|
|||
target st3wt
|
||||
mainboard supertek/st3wt
|
||||
|
||||
# Enable Serial Console for debugging
|
||||
option SERIAL_CONSOLE=1
|
||||
option TTYS0_BAUD=38400
|
||||
|
||||
option DEFAULT_CONSOLE_LOGLEVEL=9
|
||||
option DEBUG
|
||||
|
||||
option RAMTEST
|
||||
option USE_GENERIC_ROM=1
|
||||
option USE_ELF_BOOT=1
|
||||
option ZKERNEL_START=0xfffe0000
|
||||
option ZKERNEL_MASK=0xffff
|
||||
option ROM_SIZE=262144
|
||||
option STD_FLASH=1
|
||||
|
||||
# Kernel command line parameters
|
||||
commandline root=/dev/hda3 console=ttyS0,38400 reboot=h
|
||||
|
48
src/mainboard/supertek/st3wt/mainboard.c
Normal file
48
src/mainboard/supertek/st3wt/mainboard.c
Normal file
|
@ -0,0 +1,48 @@
|
|||
/*
|
||||
freebios/src/mainboard/cocom/voyager2/mainboard.c
|
||||
|
||||
Copyright (c) 2002 Christer Weinigel <wingel@hack.org>
|
||||
|
||||
Mainboard fixup for the Cocom Voyager 2
|
||||
*/
|
||||
|
||||
#include <printk.h>
|
||||
#include <pci.h>
|
||||
#include <pci_ids.h>
|
||||
#include <cpu/p5/io.h>
|
||||
|
||||
#include <types.h>
|
||||
|
||||
void
|
||||
mainboard_fixup()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
final_mainboard_fixup()
|
||||
{
|
||||
#if 0
|
||||
struct pci_dev *dev;
|
||||
int i;
|
||||
#endif
|
||||
|
||||
void final_southbridge_fixup(void);
|
||||
final_southbridge_fixup();
|
||||
|
||||
printk_info("Final mainboard fixup\n");
|
||||
|
||||
dev = pci_find_slot(0, PCI_DEVFN(0x0f, 0));
|
||||
if (dev) {
|
||||
printk_debug("nano: Setting eth0 IRQ to %d (INTB)\n",
|
||||
CS5530_INTB);
|
||||
pci_write_config_byte(dev, PCI_INTERRUPT_LINE, CS5530_INTB);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Local variables:
|
||||
compile-command: "make -C /export/bios/voyager2"
|
||||
c-basic-offset: 8
|
||||
End:
|
||||
*/
|
Loading…
Add table
Reference in a new issue