From: Junior Date: Thu, 19 Apr 2007 07:42:35 -0800 Subject: [U-Boot-Users] main clock calculation invalid Message-ID: <06D6E1270E8.0000028Aejr@inbox.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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!