From eadf95ca429af5b6508a15f66f23c0e7a2f821dd Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Wed, 10 Apr 2002 17:47:29 +0000 Subject: [PATCH] Now builds, and maybe the superio will even work. --- src/mainboard/lippert/roadrunner2/Config | 23 +------------------ .../lippert/roadrunner2/config.example | 3 +-- src/superio/SMC/fdc37b72x/setup_serial.inc | 2 +- src/superio/SMC/fdc37b72x/superio.c | 23 +++++-------------- 4 files changed, 9 insertions(+), 42 deletions(-) diff --git a/src/mainboard/lippert/roadrunner2/Config b/src/mainboard/lippert/roadrunner2/Config index 35d0d158c0..f30a97fc44 100644 --- a/src/mainboard/lippert/roadrunner2/Config +++ b/src/mainboard/lippert/roadrunner2/Config @@ -30,7 +30,7 @@ mainboardinit arch/i386/lib/console.inc northbridge nsc/gx1 southbridge nsc/cs5530 -superio SMC/fdc37b72x +nsuperio SMC/fdc37b72x com1={1} port=0x370 ######################################################################## # Lots of constans, you probably don't need to change anything here. @@ -39,27 +39,6 @@ superio SMC/fdc37b72x # 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 diff --git a/src/mainboard/lippert/roadrunner2/config.example b/src/mainboard/lippert/roadrunner2/config.example index 5c0952e2a3..60d4c05a27 100644 --- a/src/mainboard/lippert/roadrunner2/config.example +++ b/src/mainboard/lippert/roadrunner2/config.example @@ -16,6 +16,5 @@ 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 +payload ../eepro100.ebi diff --git a/src/superio/SMC/fdc37b72x/setup_serial.inc b/src/superio/SMC/fdc37b72x/setup_serial.inc index c41466dcff..e31e82246e 100644 --- a/src/superio/SMC/fdc37b72x/setup_serial.inc +++ b/src/superio/SMC/fdc37b72x/setup_serial.inc @@ -50,7 +50,7 @@ /* Check for Device ID */ SMC_READ($0x20) - cmp %al, $0x4c + cmp $0x4c, %al je 2f mov $0xfe, %al outb %al, $0x80 diff --git a/src/superio/SMC/fdc37b72x/superio.c b/src/superio/SMC/fdc37b72x/superio.c index 62f4958be4..c67f15cee8 100644 --- a/src/superio/SMC/fdc37b72x/superio.c +++ b/src/superio/SMC/fdc37b72x/superio.c @@ -7,16 +7,11 @@ // just define these here. We may never need them anywhere else #define FLOPPY_DEVICE 0 -#define PARALLEL_DEVICE 1 -#define COM1_DEVICE 2 -#define COM2_DEVICE 3 -#define KBC_DEVICE 5 -#ifdef W83977CTF -#define CIR_DEVICE 6 -#endif -#define GAME_PORT_DEVICE 7 +#define PARALLEL_DEVICE 3 +#define COM1_DEVICE 4 +#define COM2_DEVICE 5 +#define KBC_DEVICE 7 #define GPIO_PORT2_DEVICE 8 -#define GPIO_PORT3_DEVICE 9 #define ACPI_DEVICE 0xa #define FLOPPY_DEFAULT_IOBASE 0x3f0 @@ -44,8 +39,7 @@ void enter_pnp(struct superio *sio) { // unlock it XXX make this a subr at some point - outb(0x87, sio->port); - outb(0x87, sio->port); + outb(0x55, sio->port); } void @@ -278,10 +272,6 @@ static void setup_devices(struct superio *sio) set_logical_device(sio, GPIO_PORT2_DEVICE); set_enable(sio, sio->gpio2); - /* gpio_port3 */ - set_logical_device(sio, GPIO_PORT3_DEVICE); - set_enable(sio, sio->gpio3); - /* enable/disable acpi */ set_logical_device(sio, ACPI_DEVICE); set_enable(sio, sio->acpi); @@ -289,11 +279,10 @@ static void setup_devices(struct superio *sio) exit_pnp(sio); } -struct superio_control superio_winbond_w83977ef_control = { +struct superio_control superio_SMC_fdc37b72x_control = { pre_pci_init: (void *) 0, init: setup_devices, finishup: (void *) 0, defaultport: PNPADDR, name: "SMC fdc37b72x" }; -