rfc - use clk api to handle timers?

Woodruff, Richard
2006-04-04T13:30:52Z

I was just wondering if it might be useful to use the clk api to control
gp-timers?

enable/disable map well.
set_parent maps to sys_clk, dpll clk, alt_clk.
get_rate/set_rate/round_rate work well. There is a well known
divider set to use round_rate against.

One thing which might be nice is some kind of get_exclusive
which causes further gets from others to fail if a resource is already
owned. Normal usecount's would handle a shared resource.

This doesn't cover interrupt generation and others those could be added
or handled separately.

Thoughts?

Regards,
Richard W.