[U-Boot-Users] dynamic setting of CONFIG_SYS_CLK_FREQ

Dan Malek dan at embeddededge.com
Thu Apr 22 19:58:56 CEST 2004

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.


	-- Dan

More information about the U-Boot mailing list