From owner-freebsd-arm@FreeBSD.ORG Mon Mar 8 21:04:41 2010 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5BCC11065670 for ; Mon, 8 Mar 2010 21:04:41 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from mx0.deglitch.com (backbone.deglitch.com [78.110.53.255]) by mx1.freebsd.org (Postfix) with ESMTP id 190548FC1D for ; Mon, 8 Mar 2010 21:04:39 +0000 (UTC) Received: from orion.SpringDaemons.com (unknown [99.48.191.9]) by mx0.deglitch.com (Postfix) with ESMTPA id 22B148FC4E; Mon, 8 Mar 2010 23:45:42 +0300 (MSK) Received: from orion (localhost [127.0.0.1]) by orion.SpringDaemons.com (Postfix) with SMTP id A5B2839C4E; Mon, 8 Mar 2010 12:46:38 -0800 (PST) Date: Mon, 8 Mar 2010 12:46:38 -0800 From: Stanislav Sedov To: ticso@cicely.de Message-Id: <20100308124638.7de69681.stas@FreeBSD.org> In-Reply-To: <20100308202337.GF11192@cicely7.cicely.de> References: <20100308202337.GF11192@cicely7.cicely.de> Organization: The FreeBSD Project X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: arm@freebsd.org, Bernd Walter Subject: Re: RM9200 tuning X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Mar 2010 21:04:41 -0000 On Mon, 8 Mar 2010 21:23:38 +0100 Bernd Walter mentioned: > Originally FreeBSD had assumed fixed clock rates. > Knowing the peripheral rate is important for e.g. UART bps dividers. > I think in the meantime it is possible to reconfigure the kernel to > different clock rates - if yes what are the kernel options for it? > Which would be the best place to reconfigure the PLL? > I know how to do it and that it is done by the loader right now, but > I would like to have it as a kernel tuneable. > All I need to know is a good place in the kernel startup. > I think the best place to do this would be the loader itself. AFAIK, FreeBSD on AT91 doesn't assume any specific clock rate except the FSB clock rate and does the calibration of the CPU clock and xtal clock on startup. One of solutions is to add a loader tunable that will allow you to pass the FSB clock rate from the loader, instead of assuming the constant value. -- Stanislav Sedov ST4096-RIPE