diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-04-04 04:20:56 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-05-02 06:08:26 -0400 |
commit | 32af7a830fe1625fa93900606f82c541f3b3de94 (patch) | |
tree | 8db8f84fbdfcf0fb769278ecfbe9d72fe9ef812e /arch/arm/mach-imx/clk.h | |
parent | a10bd67f1905b394f5a9bd610dfc8b9b9befac0e (diff) |
ARM: imx: add common clock support for clk busy
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/clk.h')
-rw-r--r-- | arch/arm/mach-imx/clk.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/clk.h b/arch/arm/mach-imx/clk.h index 52970996f39a..1bf64fe2523c 100644 --- a/arch/arm/mach-imx/clk.h +++ b/arch/arm/mach-imx/clk.h | |||
@@ -39,6 +39,14 @@ static inline struct clk *imx_clk_gate2(const char *name, const char *parent, | |||
39 | struct clk *imx_clk_pfd(const char *name, const char *parent_name, | 39 | struct clk *imx_clk_pfd(const char *name, const char *parent_name, |
40 | void __iomem *reg, u8 idx); | 40 | void __iomem *reg, u8 idx); |
41 | 41 | ||
42 | struct clk *imx_clk_busy_divider(const char *name, const char *parent_name, | ||
43 | void __iomem *reg, u8 shift, u8 width, | ||
44 | void __iomem *busy_reg, u8 busy_shift); | ||
45 | |||
46 | struct clk *imx_clk_busy_mux(const char *name, void __iomem *reg, u8 shift, | ||
47 | u8 width, void __iomem *busy_reg, u8 busy_shift, | ||
48 | const char **parent_names, int num_parents); | ||
49 | |||
42 | static inline struct clk *imx_clk_fixed(const char *name, int rate) | 50 | static inline struct clk *imx_clk_fixed(const char *name, int rate) |
43 | { | 51 | { |
44 | return clk_register_fixed_rate(NULL, name, NULL, CLK_IS_ROOT, rate); | 52 | return clk_register_fixed_rate(NULL, name, NULL, CLK_IS_ROOT, rate); |