* [U-Boot] AM335x PLL configuration
@ 2013-02-23 11:45 Mark Jackson
2013-02-28 20:20 ` Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Mark Jackson @ 2013-02-23 11:45 UTC (permalink / raw)
To: u-boot
All the current TI AM335x boards currently appear to start with an MPU clock of 550MHx and a core clock of 1GHz,
based on #defines in include/asm/arch-am33xx/clocks_am33xx.h
I assume most people then pass control over to (eg) cpufreq once Linux boots.
However I would like to just boot up at the max clock speed (i.e. 720MHz).
Is there any merit in reworking this to allow the clock speeds to be specified in the config heaeder file ?
Or would it be better to allow the board init code to adjust the clock settings "on-the-fly" ?
I could just add some extra code to my own board.c file, but that doesn't seem like a very elegant solution !!
Maybe someone else already has a solution for this ?
Cheers
Mark J.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot] AM335x PLL configuration
2013-02-23 11:45 [U-Boot] AM335x PLL configuration Mark Jackson
@ 2013-02-28 20:20 ` Tom Rini
0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2013-02-28 20:20 UTC (permalink / raw)
To: u-boot
On Sat, Feb 23, 2013 at 11:45:45AM +0000, Mark Jackson wrote:
> All the current TI AM335x boards currently appear to start with an MPU clock of 550MHx and a core clock of 1GHz,
> based on #defines in include/asm/arch-am33xx/clocks_am33xx.h
>
> I assume most people then pass control over to (eg) cpufreq once Linux boots.
>
> However I would like to just boot up at the max clock speed (i.e. 720MHz).
>
> Is there any merit in reworking this to allow the clock speeds to be specified in the config heaeder file ?
>
> Or would it be better to allow the board init code to adjust the clock settings "on-the-fly" ?
>
> I could just add some extra code to my own board.c file, but that doesn't seem like a very elegant solution !!
>
> Maybe someone else already has a solution for this ?
The "vendor" tree has a partial solution for this, which is to make the
initial speed be the safe value (550MHz) and then if we can, depending
on board, run the clock up. For example, Beaglebone can be USB bus
powered or wall-powered, but it's only safe to run up to 720MHz (due to
potenital power spikes later on during kernel boot) if on wall power.
So yes, if you want to start down the road of allowing boards to say "I
know I can now run at ...", please do so!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130228/49d5dc80/attachment-0001.pgp>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-02-28 20:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-23 11:45 [U-Boot] AM335x PLL configuration Mark Jackson
2013-02-28 20:20 ` Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox