aboutsummaryrefslogtreecommitdiff
path: root/drivers/clk/clk-divider.c
AgeCommit message (Collapse)AuthorFilesLines
2012-04-24clk: pass parent_rate into .set_rateShawn Guo1-2/+3
For most of .set_rate implementation, parent_rate will be used, so just like passing parent_rate into .recalc_rate, let's pass parent_rate into .set_rate too. It also updates the kernel doc for .set_rate ops. Signed-off-by: Shawn Guo <[email protected]> Signed-off-by: Mike Turquette <[email protected]>
2012-04-24clk: always pass parent_rate into .round_rateShawn Guo1-9/+3
The parent_rate will likely be used by most .round_rate implementation no matter whether flag CLK_SET_RATE_PARENT is set or not, so let's always pass parent_rate into .round_rate. Signed-off-by: Shawn Guo <[email protected]> Signed-off-by: Mike Turquette <[email protected]>
2012-04-24clk: basic: improve parent_names & return errorsMike Turquette1-15/+19
This patch is the basic clk version of 'clk: core: copy parent_names & return error codes'. The registration functions are changed to allow the core code to copy the array of strings and allow platforms to declare those arrays as __initdata. This patch also converts all of the basic clk registration functions to return error codes which better aligns them with the existing clk.h api. Signed-off-by: Mike Turquette <[email protected]>
2012-04-24clk: add "const" for clk_ops of basic clksShawn Guo1-1/+1
The clk_ops of basic clks should have "const" to match the definition in "struct clk" and clk_register prototype. Signed-off-by: Shawn Guo <[email protected]> Signed-off-by: Mike Turquette <[email protected]>
2012-04-24clk: remove unnecessary EXPORT_SYMBOL_GPLShawn Guo1-3/+0
It makes no sense to have EXPORT_SYMBOL_GPL on static functions. Signed-off-by: Shawn Guo <[email protected]> Signed-off-by: Mike Turquette <[email protected]>
2012-03-16clk: basic clock hardware typesMike Turquette1-0/+200
Many platforms support simple gateable clocks, fixed-rate clocks, adjustable divider clocks and multi-parent multiplexer clocks. This patch introduces basic clock types for the above-mentioned hardware which share some common characteristics. Based on original work by Jeremy Kerr and contribution by Jamie Iles. Dividers and multiplexor clocks originally contributed by Richard Zhao & Sascha Hauer. Signed-off-by: Mike Turquette <[email protected]> Signed-off-by: Mike Turquette <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Tested-by: Andrew Lunn <[email protected]> Reviewed-by: Rob Herring <[email protected]> Cc: Russell King <[email protected]> Cc: Jeremy Kerr <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Arnd Bergman <[email protected]> Cc: Paul Walmsley <[email protected]> Cc: Shawn Guo <[email protected]> Cc: Sascha Hauer <[email protected]> Cc: Jamie Iles <[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]>