puc(4) timedia baudrate problem

Paul Schenkeveld fb-stable at psconsult.nl
Thu Apr 29 07:44:36 UTC 2010


Hi Marcel,

On Tue, Apr 27, 2010 at 09:46:08PM -0700, Marcel Moolenaar wrote:
> 
> On Apr 27, 2010, at 12:47 PM, Paul Schenkeveld wrote:
> 
> >    puc0: <Timedia technology 8 Port Serial> port 0xe500-0xe51f,0xe520-0xe52f,0xe530-0xe537,0xe538-0xe53f,0xe540-0xe547,0xe548-0xe54f irq 10 at device 14.0 on pci0
> *snip*
> > The first two ports work correctly but the baudrate of the other six
> > is incorrect, i.e. I have to use 'tip -76800 uart5' to get the port
> > to communicate at 9600 baud.  I 'know' that this particular hardware
> > has a baudrate multiplier on the first two ports but not on the other
> > six.
> *snip*
> 
> Can you show me the output of ``pciconf -lbv'' for this device so that
> I can create a patch for you to test?

puc0 at pci0:0:14:0:	class=0x070002 card=0x50661409 chip=0x71681409 rev=0x01 hdr=0x00
    vendor     = 'Timedia Technology Co Ltd'
    device     = 'PCI / ISA Asynchronous UART Signal Chips Solution (40371409)'
    class      = simple comms
    subclass   = UART
    bar   [10] = type I/O Port, range 32, base 0xe500, size 32, enabled
    bar   [14] = type I/O Port, range 32, base 0xe520, size 16, enabled
    bar   [18] = type I/O Port, range 32, base 0xe530, size  8, enabled
    bar   [1c] = type I/O Port, range 32, base 0xe538, size  8, enabled
    bar   [20] = type I/O Port, range 32, base 0xe540, size  8, enabled
    bar   [24] = type I/O Port, range 32, base 0xe548, size  8, enabled

> Also: do you happen to know if all 8-port Timedia cards have a non-
> uniform RCLK or only a select set (maybe only yours)?

In fact this card is a Sunix (www.sunix.com.tw) card but matches the
PCI ids of the Timedia card.  In FreeBSD 6.x it matched a 2 port
"Dolphin Peripherals 4036".  By adding 6 more ports and changing the
clock multiplier for ports 3 to 8 I got it to work with puc.

> Thanks,

Regards,

Paul Schenkeveld


More information about the freebsd-stable mailing list