[PATCH 2/2] clk: Generic support for fixed-rate clocks

Jeremy Kerr jeremy.kerr at canonical.com
Mon Feb 21 18:29:11 EST 2011


Hi Ryan,

> If we never need to dynamically create fixed clocks (which seems
> unlikely) then rate can be const.

There's been a few cases where I've needed to set the rate of a fixed clock 
during boot - for example when a clock rate varies between boards, it may be 
defined in a platform-wide file, but have the rate modified early (ie, 
clk_foo.rate = 32678) in a board file.

Also, if we're parsing clocks from the device tree (or any other discovery 
mechanism), we'll need to modify rate.

Cheers,


Jeremy



More information about the linux-arm-kernel mailing list