From 6fdc0393cbd4741f60f5e15543ea2e79b138a8c0 Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Wed, 10 Apr 2002 00:21:41 +0000 Subject: [PATCH] lippert roadrunner2 trial. --- src/mainboard/lippert/roadrunner2/Config | 81 +++++++++++++++++++ .../lippert/roadrunner2/config.example | 21 +++++ src/mainboard/lippert/roadrunner2/mainboard.c | 50 ++++++++++++ 3 files changed, 152 insertions(+) create mode 100644 src/mainboard/lippert/roadrunner2/Config create mode 100644 src/mainboard/lippert/roadrunner2/config.example create mode 100644 src/mainboard/lippert/roadrunner2/mainboard.c diff --git a/src/mainboard/lippert/roadrunner2/Config b/src/mainboard/lippert/roadrunner2/Config new file mode 100644 index 0000000000..e4e16ff63f --- /dev/null +++ b/src/mainboard/lippert/roadrunner2/Config @@ -0,0 +1,81 @@ +# Copyright (c) 2002 Christer Weinigel + +# This is a config file for the lippert cool roadrunnerII + +# The board is a National Semiconductor GX1 + CS5530 + SMC37b727 +# 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 EEPRO100 +# 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/SMC/fdc37b72x/sio_setup.inc +mainboardinit pc80/serial.inc +mainboardinit arch/i386/lib/console.inc + +######################################################################## + +northbridge nsc/gx1 +southbridge nsc/cs5530 +superio SMC/fdc37b72x + +######################################################################## +# 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: diff --git a/src/mainboard/lippert/roadrunner2/config.example b/src/mainboard/lippert/roadrunner2/config.example new file mode 100644 index 0000000000..5c0952e2a3 --- /dev/null +++ b/src/mainboard/lippert/roadrunner2/config.example @@ -0,0 +1,21 @@ +target roadrunner2 +mainboard lippert/roadrunner2 + +# 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 + diff --git a/src/mainboard/lippert/roadrunner2/mainboard.c b/src/mainboard/lippert/roadrunner2/mainboard.c new file mode 100644 index 0000000000..abbcf4502a --- /dev/null +++ b/src/mainboard/lippert/roadrunner2/mainboard.c @@ -0,0 +1,50 @@ +/* + freebios/src/mainboard/cocom/voyager2/mainboard.c + + Copyright (c) 2002 Christer Weinigel + + Mainboard fixup for the Cocom Voyager 2 +*/ + +#include +#include +#include +#include + +#include + +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"); + +#if 0 + 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); + } +#endif +} + +/* + Local variables: + compile-command: "make -C /export/bios/voyager2" + c-basic-offset: 8 + End: +*/