From owner-freebsd-stable@FreeBSD.ORG Wed Apr 28 05:10:25 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 7E376106566C for ; Wed, 28 Apr 2010 05:10:25 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0EB118FC1C for ; Wed, 28 Apr 2010 05:10:23 +0000 (UTC) Received: by pvg11 with SMTP id 11so806740pvg.13 for ; Tue, 27 Apr 2010 22:10:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=5ZNn/78moTdYuv+/LYFHeFWaUt16TJkhHD9uDVsEEpo=; b=pA3FJnY0F/N+km3KG/zpnlHUg8b7EuN0jpM+Uq4LCJmbbZVaFAAcYDl9uAY5Xqp/qC yEqNkLwzP1TuvmlfhzLZfnzobREU6nXX0+40Dpix7D9ZT9AgAlY4eDSMM9Dpgf60C17l +l/C9/zmM3Vde/W0N3W5A73BoOghNgbsrHe6w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=Mmu0bxtpKdsgg8Idvoj4GIsGNA9cL1n/+0nGz0BfLtH/qZiswMMoBV8h3UyEn+hFlx P8P9/o38phzpLlOz8x5IqvLn+waiVu8z2V5wP8ppGVTlEi3J3J48T1PByk9aixTptoL9 Kf1NSdyi1wvf5gjAMVuDegIGmpa29O/QFsZQk= MIME-Version: 1.0 Received: by 10.141.124.5 with SMTP id b5mr7005628rvn.68.1272431417966; Tue, 27 Apr 2010 22:10:17 -0700 (PDT) Sender: artemb@gmail.com Received: by 10.141.29.10 with HTTP; Tue, 27 Apr 2010 22:10:17 -0700 (PDT) In-Reply-To: References: <20100427194725.GA14112@psconsult.nl> Date: Tue, 27 Apr 2010 22:10:17 -0700 X-Google-Sender-Auth: bc6fbdcf74d57281 Message-ID: From: Artem Belevich To: Marcel Moolenaar Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 05:10:25 -0000 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=3D0x070006 card=3D0x00011415 chip=3D0x9521141= 5 rev=3D0x00 hdr=3D0x00 vendor =3D 'Oxford Semiconductor Ltd' device =3D 'OX16PCI952 Integrated Dual UART' class =3D simple comms subclass =3D UART bar [10] =3D type I/O Port, range 32, base 0xd480, size 8, enabled bar [14] =3D type I/O Port, range 32, base 0xd400, size 8, enabled bar [18] =3D type I/O Port, range 32, base 0xd080, size 32, enabled bar [1c] =3D type Memory, range 32, base 0xf9ffd000, size 4096, enabl= ed bar [20] =3D type Memory, range 32, base 0xf9ffc000, size 4096, enabl= ed Perhaps we can add some sort of tunable to override UART clock, if necessar= y? --Artem On Tue, Apr 27, 2010 at 9:46 PM, Marcel Moolenaar wrote: > > On Apr 27, 2010, at 12:47 PM, Paul Schenkeveld wrote: > >> =A0 =A0puc0: port 0xe500-0xe51f,0xe52= 0-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. =A0I '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? > > 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)? > > Thanks, > > -- > Marcel Moolenaar > xcllnt@mac.com > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >