[U-Boot-Users] dynamic setting of CONFIG_SYS_CLK_FREQ

Dan Malek
2004-04-22T17:58:56Z

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