Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clk: introduce the common clock framework
The common clock framework defines a common struct clk useful across most platforms as well as an implementation of the clk api that drivers can use safely for managing clocks. The net result is consolidation of many different struct clk definitions and platform-specific clock framework implementations. This patch introduces the common struct clk, struct clk_ops and an implementation of the well-known clock api in include/clk/clk.h. Platforms may define their own hardware-specific clock structure and their own clock operation callbacks, so long as it wraps an instance of struct clk_hw. See Documentation/clk.txt for more details. This patch is based on the work of Jeremy Kerr, which in turn was based on the work of Ben Herrenschmidt. Signed-off-by: Mike Turquette <[email protected]> Signed-off-by: Mike Turquette <[email protected]> Reviewed-by: Thomas Gleixner <[email protected]> Tested-by: Andrew Lunn <[email protected]> Reviewed-by: Rob Herring <rob.herring <at> calxeda.com> Cc: Russell King <[email protected]> Cc: Jeremy Kerr <[email protected]> Cc: Arnd Bergman <[email protected]> Cc: Paul Walmsley <[email protected]> Cc: Shawn Guo <[email protected]> Cc: Sascha Hauer <[email protected]> Cc: Richard Zhao <[email protected]> Cc: Saravana Kannan <[email protected]> Cc: Magnus Damm <[email protected]> Cc: Mark Brown <[email protected]> Cc: Linus Walleij <[email protected]> Cc: Stephen Boyd <[email protected]> Cc: Amit Kucheria <[email protected]> Cc: Deepak Saxena <[email protected]> Cc: Grant Likely <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
- Loading branch information