From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Malek Date: Thu, 22 Apr 2004 13:58:56 -0400 Subject: [U-Boot-Users] dynamic setting of CONFIG_SYS_CLK_FREQ References: <66FC73FC-9476-11D8-A48D-000393DBC2E8@motorola.com> Message-ID: <408807E0.5020102@embeddededge.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Kumar Gala wrote: > I was wondering if there where an examples in the current u-boot source > tree in which CONFIG_SYS_CLK_FREQ was determined dynamically. Kinda. The 8xx, 8260, and 8560 (that I know of), use the 'global_descriptor' to hold clock information necessary for computing such things. Their serial drivers (among others) use the clock values to derive their divisor clocks. We should probably use this same model for other boards, and you could just define CONFIG_SYS_CLK_FREQ to fetch this instead of making it a fixed number. Thanks. -- Dan