setserial seems to be fine:
In V1 the file to modify is src/superio/via/vt1211/setup_serial.inc That code sets up ttyS0 which is the VT1211's logical device 2. You want to add some similiar code for logical device 3 to get ttyS1 working.
Assuming you want it to be at 2f8 you'd merge in these lines: OUTPNPADDR($7) OUTPNPDATA($3) /* set the enable in reg. 0x30 */ OUTPNPADDR($0x30) OUTPNPDATA($0x1)
/* Serial Port 2 Base Address (BEh) */ OUTPNPADDR($0x60) OUTPNPDATA($0xbe) /* Serial Port 2 IRQ (03h) */ OUTPNPADDR($0x70) OUTPNPDATA($0x3) /* Serial Port 2 Control */ OUTPNPADDR($0xf0) OUTPNPDATA($0x2)
...then do the turn off pnp /* turn off PnP */ OUTPNPADDR($0xaa)
...then duplicate the serial setup except the address goes from 3f8 -> 2f8
That should do it.
-Dave
On 17-Nov-2003 Dave Ashley wrote:
setserial seems to be fine:
In V1 the file to modify is src/superio/via/vt1211/setup_serial.inc That code sets up ttyS0 which is the VT1211's logical device 2. You want to add some similiar code for logical device 3 to get ttyS1 working.
Assuming you want it to be at 2f8 you'd merge in these lines: OUTPNPADDR($7) OUTPNPDATA($3) /* set the enable in reg. 0x30 */ OUTPNPADDR($0x30) OUTPNPDATA($0x1)
/* Serial Port 2 Base Address (BEh) */ OUTPNPADDR($0x60) OUTPNPDATA($0xbe) /* Serial Port 2 IRQ (03h) */ OUTPNPADDR($0x70) OUTPNPDATA($0x3) /* Serial Port 2 Control */ OUTPNPADDR($0xf0) OUTPNPDATA($0x2)
...then do the turn off pnp /* turn off PnP */ OUTPNPADDR($0xaa)
...then duplicate the serial setup except the address goes from 3f8 -> 2f8
That should do it.
thanks a lot. i'll give it a try. how do you know that it is VT1211's logical device #3?
niki
perfect!!! linux-2.6.0-test9-bk16 says: === Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing disabled ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A === thanks a lot!!! niki
On 17-Nov-2003 Dave Ashley wrote:
setserial seems to be fine:
In V1 the file to modify is src/superio/via/vt1211/setup_serial.inc That code sets up ttyS0 which is the VT1211's logical device 2. You want to add some similiar code for logical device 3 to get ttyS1 working.
Assuming you want it to be at 2f8 you'd merge in these lines: OUTPNPADDR($7) OUTPNPDATA($3) /* set the enable in reg. 0x30 */ OUTPNPADDR($0x30) OUTPNPDATA($0x1)
/* Serial Port 2 Base Address (BEh) */ OUTPNPADDR($0x60) OUTPNPDATA($0xbe) /* Serial Port 2 IRQ (03h) */ OUTPNPADDR($0x70) OUTPNPDATA($0x3) /* Serial Port 2 Control */ OUTPNPADDR($0xf0) OUTPNPDATA($0x2)
...then do the turn off pnp /* turn off PnP */ OUTPNPADDR($0xaa)
...then duplicate the serial setup except the address goes from 3f8 -> 2f8
That should do it.
-Dave