[U-Boot-Users] main clock calculation invalid
Junior
ejr at inbox.com
Thu Apr 19 17:42:35 CEST 2007
Hi all,
I'm trying to figure out why the below calculation of my main frequencey clock is not correct.
In the below equation:
maindiv2 = 28
maindiv1 = 13
prediv = 23
ps = 0
and CONFIG_SYS_CLK_FREQ is 14745600.
but I get 93622108 instead of 265420800. How is this possible?
here is the equation which is what get_FCLK returns:
return (((maindiv2 + 2) * (maindiv1 + 2) * CONFIG_SYS_CLK_FREQ) /
((prediv + 2) * (1 << ps)));
much thanks.
--Jr.
____________________________________________________________
GET FREE 5GB ONLINE STORAGE - Safely store your documents, photos and music online!
Visit http://www.inbox.com/storage to find out more!
More information about the U-Boot
mailing list