From owner-freebsd-stable@FreeBSD.ORG Thu Apr 29 07:44:36 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4FC93106564A for ; Thu, 29 Apr 2010 07:44:36 +0000 (UTC) (envelope-from fb-stable@psconsult.nl) Received: from mx1.psconsult.nl (psc11.adsl.iaf.nl [80.89.238.138]) by mx1.freebsd.org (Postfix) with ESMTP id BB9D58FC15 for ; Thu, 29 Apr 2010 07:44:35 +0000 (UTC) Received: from mx1.psconsult.nl (psc11.adsl.iaf.nl [80.89.238.138]) by mx1.psconsult.nl (8.14.4/8.14.4) with ESMTP id o3T7hCv9045464 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 29 Apr 2010 09:43:18 +0200 (CEST) (envelope-from fb-stable@psconsult.nl) Received: (from paul@localhost) by mx1.psconsult.nl (8.14.4/8.14.4/Submit) id o3T7hB27045463; Thu, 29 Apr 2010 09:43:11 +0200 (CEST) (envelope-from fb-stable@psconsult.nl) X-Authentication-Warning: mx1.psconsult.nl: paul set sender to fb-stable@psconsult.nl using -f Date: Thu, 29 Apr 2010 09:43:11 +0200 From: Paul Schenkeveld To: freebsd-stable@freebsd.org Message-ID: <20100429074311.GA45364@psconsult.nl> References: <20100427194725.GA14112@psconsult.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.19 (2009-01-05) Cc: Marcel Moolenaar Subject: Re: puc(4) timedia baudrate problem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2010 07:44:36 -0000 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: 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@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