[U-Boot-Users] [PATCH] Add auto detection of system clock speed to Acadia

Jeff Mann MannJ at embeddedplanet.com
Thu Jul 26 17:57:25 CEST 2007


Stefan and the u-boot list:
 
The System clock speed of the Acadia may be changing yet again. In order
to find a better way of detecting the correct system clock speed, this
method was devised. It measures the system clock speed against the
performance timer in the CPLD the first time that the function is called
and chooses the correct system clock speed. It then saves the result in
the global variables to use for each future call to the function. 
 
I also added the environmental variable, "sysclk," set in the
misc_init_r function so that it could be passed to Linux. (I do not know
if Linux takes this argument, so I am not sure if it is useful.)
 
let me know if there are any problem with this approach, but it seems to
be a better solution to the changing clock problem in the acadia.
 
The patch file is attached.
 
-Jeffrey Mann
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20070726/24f6b02b/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: acadia_clock.patch
Type: application/octet-stream
Size: 3578 bytes
Desc: acadia_clock.patch
Url : http://lists.denx.de/pipermail/u-boot/attachments/20070726/24f6b02b/attachment.obj 


More information about the U-Boot mailing list