Re: rfc - use clk api to handle timers?

tony
2006-04-07T13:24:26Z

* Woodruff, Richard <r-woodruff2@ti.com> [060404 06:32]:
> 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?

We should use gptimers via hrtimers. Using the clk api for internal rate
control may work as long as we use rates.

Tony