Hi,

On Tue, Oct 16, 2007 at 10:08:42PM +0200, Erwan Velu wrote:
>> Can you please post the output of 'lspci -tvnn' and 'superiotool -dV'
>> here? I think I can post a small patch for you to try on the board, it
>> is indeed very similar to other GX1-based boards.
>>   
> -bash-3.2# lspci -tvvn
> -[0000:00]-+-00.0  1078:0001
>           +-0b.0  10ec:8139
>           +-12.0  1078:0100
>           +-12.1  1078:0101
>           +-12.2  1078:0102
>           +-12.3  1078:0103
>           +-12.4  1078:0104
>           \-13.0  0e11:a0f8

Some more info from IRC:

-bash-3.2# lspci -tvnn
-[0000:00]-+-00.0  Cyrix Corporation PCI Master [1078:0001]
           +-0b.0  Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ 
[10ec:8139]
           +-12.0  Cyrix Corporation 5530 Legacy [Kahlua] [1078:0100]
           +-12.1  Cyrix Corporation 5530 SMI [Kahlua] [1078:0101]
           +-12.2  Cyrix Corporation 5530 IDE [Kahlua] [1078:0102]
           +-12.3  Cyrix Corporation 5530 Audio [Kahlua] [1078:0103]
           +-12.4  Cyrix Corporation 5530 Video [Kahlua] [1078:0104]
           \-13.0  Compaq Computer Corporation ZFMicro Chipset USB [0e11:a0f8]


> superiotool says that no SuperIO was found. Note that my system is very 
> minimal, hope this doesn't affect the detection process.
> I've been looking on the mobo, I found a Winbond W83977-AF-A, hope this 
> helps.

The board is an Advantech PCM-5820, Super I/O is a Winbond W83977AF, but
with a 0x77 revision (and 0x97 chip ID), which I couldn't find
documented in any datasheet so far. I fixed superiotool to detect it,
though.


I created an initial test patch for Erwan which he's gonna try soon,
here it is (for reference). It's incomplete of course, but enough for
a first try.

The board is used in a robot btw, something like this:
http://konilope.linuxeries.org/robot/DSCN0817_Med.jpg.17.html

This should make for some cool use-case of LinuxBIOS. Erwan, as soon as this
is working on the board/robot can you write up a short wiki article
with status table of what is working, and especially some boot speed
comparison with the proprietary BIOS? That would be very cool!

Photos or videos of the robot booting and doing stuff would be awesome, too :)


Thanks, Uwe.
-- 
http://www.hermann-uwe.de  | http://www.holsham-traders.de
http://www.crazy-hacks.org | http://www.unmaintained-free-software.org
Signed-off-by: Uwe Hermann <[EMAIL PROTECTED]>

Index: src/mainboard/bcom/winnet100/Config.lb
===================================================================
--- src/mainboard/bcom/winnet100/Config.lb	(Revision 2864)
+++ src/mainboard/bcom/winnet100/Config.lb	(Arbeitskopie)
@@ -84,47 +84,50 @@
     device pci 0.0 on end
       chip southbridge/amd/cs5530
         device pci 12.0 on
-          chip superio/nsc/pc97317
-            device pnp 2e.0 on		# PS/2 keyboard
-              io 0x60 = 0x60
-              io 0x62 = 0x64
-              irq 0x70 = 1
+          chip superio/winbond/w83977f
+            device pnp 3f0.0 on		# Floppy
+              io 0x60 = 0x3f0
+              irq 0x70 = 6
+              drq 0x74 = 2
             end
-            device pnp 2e.1 on		# PS/2 mouse
-              irq 0x70 = 12
-            end
-            device pnp 2e.2 on		# RTC
-              io 0x60 = 0x70
-              irq 0x70 = 8
-            end
-            device pnp 2e.3 off		# Floppy
-            end
-            device pnp 2e.4 on		# Parallel port
+            device pnp 3f0.1 on		# Parallel port
               io 0x60 = 0x378
               irq 0x70 = 7
             end
-            device pnp 2e.5 off		# COM2
+            device pnp 3f0.2 on		# COM1
+              io 0x60 = 0x3f8
+              irq 0x70 = 4
+            end
+            device pnp 3f0.3 on		# COM2
               io 0x60 = 0x2f8
               irq 0x70 = 3
             end
-            device pnp 2e.6 on		# COM1
-              io 0x60 = 0x3f8
-              irq 0x70 = 4
+            device pnp 3f0.4 on		# RTC
+              io 0x60 = 0x70
+              irq 0x70 = 8
             end
-            device pnp 2e.7 on		# GPIO
-              io 0x60 = 0xe0
+            device pnp 3f0.5 on		# PS/2 keyboard
+              io 0x60 = 0x60
+              io 0x62 = 0x64
+              irq 0x70 = 1		# PS/2 keyboard interrupt
+              # irq 0x72 = 12		# PS/2 mouse interrupt (?)
             end
-            device pnp 2e.8 on		# Power management
-               io 0x60 = 0xe800
+            device pnp 3f0.6 on		# IR (TODO: needed?)
+              # TODO?
             end
-            register "com1" = "{115200}"
-            register "com2" = "{38400}"
+            device pnp 3f0.7 on		# GPIO 1
+              # TODO?
+            end
+            device pnp 3f0.8 on		# GPIO 2
+              # TODO?
+            end
           end
+        end
         device pci 12.1 off end		# SMI
-        device pci 12.2 off end		# IDE
+        device pci 12.2 on end		# IDE
         device pci 12.3 on end		# Audio
         device pci 12.4 on end		# VGA
-        # device pci 13.0 on end	# USB
+        device pci 13.0 on end		# USB
       end
     end
   end
Index: src/mainboard/bcom/winnet100/auto.c
===================================================================
--- src/mainboard/bcom/winnet100/auto.c	(Revision 2864)
+++ src/mainboard/bcom/winnet100/auto.c	(Arbeitskopie)
@@ -30,15 +30,15 @@
 #include "arch/i386/lib/console.c"
 #include "ram/ramtest.c"
 #include "northbridge/amd/gx1/raminit.c"
-#include "superio/nsc/pc97317/pc97317_early_serial.c"
+#include "superio/winbond/w83977f/w83977f_early_serial.c"
 #include "cpu/x86/bist.h"
 
-#define SERIAL_DEV PNP_DEV(0x2e, PC97317_SP1)
+#define SERIAL_DEV PNP_DEV(0x3f0, W83977F_SP1)
 
 static void main(unsigned long bist)
 {
 	/* Initialize the serial console. */
-	pc97317_enable_serial(SERIAL_DEV, TTYS0_BASE);
+	w83977f_enable_serial(SERIAL_DEV, TTYS0_BASE);
 	uart_init();
 	console_init();
 

Attachment: signature.asc
Description: Digital signature

-- 
linuxbios mailing list
linuxbios@linuxbios.org
http://www.linuxbios.org/mailman/listinfo/linuxbios

Reply via email to