Messages in this thread | | | Date | Wed, 26 Mar 2008 18:49:13 +0300 | From | Dmitry Baryshkov <> | Subject | [PATCH 0/3] Clocklib: generic clocks framework |
| |
Hi,
The <linux/clk.h> provides the API to use clocks. However there is no API for clock providers. Commonly clocks are provided by platform-specific code, which implements full <linux/clk.h> API for itself. It results in massive code duplication and lack of flexibility. If I'd like to be able to provide clocks from the driver for e.g. CPU companion chip, I'd either have to implement a lot of platform-specific hooks, or invent some other dirty hacks.
In the followup I'd like to propose the generic <linux/clk.h> implementation, that can be used to hook clock definitions from various sources. Also as an example there will be a patch to convert ARM SA-1100 to the clocklib.
I'd like arch maintainers to check whether there is somthing in this implementation that wouldn't work for their piece of kernel, whether is's suitable for them to drop their own clock implementation (if any) and to use clocklib.
-- With best wishes Dmitry
| |