From owner-freebsd-stable@FreeBSD.ORG Wed Apr 28 19:34:59 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 56FF6106566C for ; Wed, 28 Apr 2010 19:34:59 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout026.mac.com (asmtpout026.mac.com [17.148.16.101]) by mx1.freebsd.org (Postfix) with ESMTP id 3F0B78FC1B for ; Wed, 28 Apr 2010 19:34:59 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii Received: from macbook-pro.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp026.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0L1L0054YQE90S20@asmtp026.mac.com> for freebsd-stable@freebsd.org; Wed, 28 Apr 2010 12:34:58 -0700 (PDT) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1004280160 From: Marcel Moolenaar In-reply-to: Date: Wed, 28 Apr 2010 12:34:57 -0700 Message-id: <89F0A5CD-D4EB-447C-801F-A3BF750FB475@mac.com> References: <20100427194725.GA14112@psconsult.nl> To: Artem Belevich X-Mailer: Apple Mail (2.1078) Cc: freebsd-stable@freebsd.org 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: Wed, 28 Apr 2010 19:34:59 -0000 On Apr 27, 2010, at 10:10 PM, Artem Belevich wrote: > I've got another PCI UART card based on OX16PCI952 that needs its > clock multiplied by 8 in order to work correctly. It was some > el-cheapo card I've got at Fry's. > > puc0@pci0:1:0:0: class=0x070006 card=0x00011415 chip=0x95211415 > rev=0x00 hdr=0x00 > vendor = 'Oxford Semiconductor Ltd' > device = 'OX16PCI952 Integrated Dual UART' > class = simple comms > subclass = UART > bar [10] = type I/O Port, range 32, base 0xd480, size 8, enabled > bar [14] = type I/O Port, range 32, base 0xd400, size 8, enabled > bar [18] = type I/O Port, range 32, base 0xd080, size 32, enabled > bar [1c] = type Memory, range 32, base 0xf9ffd000, size 4096, enabled > bar [20] = type Memory, range 32, base 0xf9ffc000, size 4096, enabled > > Perhaps we can add some sort of tunable to override UART clock, if necessary? That's a good idea. I've seen with the Oxford that the RCLK can different even for the same vendor/device ID. There's no way for us to do the right thing. This may also be the case for Timedia chipsets... -- Marcel Moolenaar xcllnt@mac.com