Received: by mail.netbsd.org (Postfix, from userid 605) id 8008D14A1C1; Tue, 13 Dec 2011 14:39:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id DAEDD14A1C0 for ; Tue, 13 Dec 2011 14:39:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id Bu_6wtLrB2d7 for ; Tue, 13 Dec 2011 14:39:37 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 320F114A17A for ; Tue, 13 Dec 2011 14:39:37 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 51B4B175DD; Tue, 13 Dec 2011 14:39:37 +0000 (UTC) MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Date: Tue, 13 Dec 2011 14:39:37 +0000 From: "Michael Lorenz" Subject: CVS commit: src/sys/dev/pci/voyager To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20111213143937.51B4B175DD@cvs.netbsd.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Michael Lorenz" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: macallan Date: Tue Dec 13 14:39:37 UTC 2011 Modified Files: src/sys/dev/pci/voyager: files.voyager Added Files: src/sys/dev/pci/voyager: pwmclock.c Log Message: an alternative clock implementation for Loongson2F and SM502, mostly Gdium-specific. This supports Loongson2F frequency scaling. The problem is that Gdium has no CPU clock independent high resolution timer we can use as a timecounter so we use one of the SM502's PWMs to generate a 100Hz timer interrupt, use the cp0 counter to measure time and adjust for frequency changes. Other Loongson-based machines will need something similar but hopefully less hackish. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/dev/pci/voyager/files.voyager cvs rdiff -u -r0 -r1.1 src/sys/dev/pci/voyager/pwmclock.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.