summaryrefslogtreecommitdiffstats
path: root/drivers/clk/ux500/clk.h
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2013-04-03 14:26:57 +0200
committerMike Turquette <mturquette@linaro.org>2013-04-10 20:27:56 +0200
commit5b82d03b74cadb681377e1c2494c477185bf6619 (patch)
treec6342e1461c7a35a098c236b3ee5e307472712fe /drivers/clk/ux500/clk.h
parentclk: mvebu: Fix valid value range checking for cpu_freq_select (diff)
downloadlinux-5b82d03b74cadb681377e1c2494c477185bf6619.tar.xz
linux-5b82d03b74cadb681377e1c2494c477185bf6619.zip
clk: ux500: Add support for sysctrl clocks
The abx500 sysctrl clocks are using the ab8500 sysctrl driver to modify the clock hardware. Sysctrl clocks are represented by a ab8500 sysctrl register and with a corresponding bitmask. The sysctrl clocks are slow path clocks, which means clk_prepare and clk_unprepare will be used to gate|ungate these clocks. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/ux500/clk.h')
-rw-r--r--drivers/clk/ux500/clk.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/drivers/clk/ux500/clk.h b/drivers/clk/ux500/clk.h
index c3e449169a83..3d2dfdc71290 100644
--- a/drivers/clk/ux500/clk.h
+++ b/drivers/clk/ux500/clk.h
@@ -11,6 +11,7 @@
#define __UX500_CLK_H
#include <linux/clk.h>
+#include <linux/device.h>
struct clk *clk_reg_prcc_pclk(const char *name,
const char *parent_name,
@@ -57,4 +58,32 @@ struct clk *clk_reg_prcmu_opp_volt_scalable(const char *name,
unsigned long rate,
unsigned long flags);
+struct clk *clk_reg_sysctrl_gate(struct device *dev,
+ const char *name,
+ const char *parent_name,
+ u16 reg_sel,
+ u8 reg_mask,
+ u8 reg_bits,
+ unsigned long enable_delay_us,
+ unsigned long flags);
+
+struct clk *clk_reg_sysctrl_gate_fixed_rate(struct device *dev,
+ const char *name,
+ const char *parent_name,
+ u16 reg_sel,
+ u8 reg_mask,
+ u8 reg_bits,
+ unsigned long rate,
+ unsigned long enable_delay_us,
+ unsigned long flags);
+
+struct clk *clk_reg_sysctrl_set_parent(struct device *dev,
+ const char *name,
+ const char **parent_names,
+ u8 num_parents,
+ u16 *reg_sel,
+ u8 *reg_mask,
+ u8 *reg_bits,
+ unsigned long flags);
+
#endif /* __UX500_CLK_H */