Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Mar 2010 12:46:38 -0800
From:      Stanislav Sedov <stas@FreeBSD.org>
To:        ticso@cicely.de
Cc:        arm@freebsd.org, Bernd Walter <ticso@cicely7.cicely.de>
Subject:   Re: RM9200 tuning
Message-ID:  <20100308124638.7de69681.stas@FreeBSD.org>
In-Reply-To: <20100308202337.GF11192@cicely7.cicely.de>
References:  <20100308202337.GF11192@cicely7.cicely.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 8 Mar 2010 21:23:38 +0100
Bernd Walter <ticso@cicely7.cicely.de> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100308124638.7de69681.stas>