Received: by mail.netbsd.org (Postfix, from userid 605) id 4BA9C14A3EC; Sat, 17 Oct 2015 14:46:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 539F214A3E9 for ; Sat, 17 Oct 2015 14:46:02 +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 ImIQGvEdq-vq for ; Sat, 17 Oct 2015 14:46:01 +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 9172D14A3E2 for ; Sat, 17 Oct 2015 14:46:01 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 7672198; Sat, 17 Oct 2015 14:46:01 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sat, 17 Oct 2015 14:46:01 +0000 From: "Manuel Bouyer" Subject: CVS commit: src/sys/arch/arm/allwinner To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20151017144601.7672198@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: "Manuel Bouyer" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: bouyer Date: Sat Oct 17 14:46:01 UTC 2015 Modified Files: src/sys/arch/arm/allwinner: awin_board.c Log Message: awin_cpu_clk(): Fix reading of CPU_CLK_SRC_CEL bits: doing a shiftin followed by a shiftout ends up reading bits(0,1) instead of AWIN_CPU_CLK_SRC_SEL. It happens that these bits (AWIN_AXI_CLK_DIV_RATIO) are 2 (divide by 3) at boot (at last on cubieboard2 and olimex lime2), which matches AWIN_CPU_CLK_SRC_SEL_PLL1, so this has gone unnoticed. To generate a diff of this commit: cvs rdiff -u -r1.35 -r1.36 src/sys/arch/arm/allwinner/awin_board.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.