diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-04-04 04:02:28 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-05-02 06:08:06 -0400 |
commit | a3f6b9dbf2a964b85f0523e577807d6f63d6b29d (patch) | |
tree | 118195636ea74ca8b92d40b5be03c4cae0f795b6 /arch/arm/mach-imx/clk.h | |
parent | a547b816a879b235ae0f90ae32d74effbb20d6d1 (diff) |
ARM: imx: add common clock support for pllv3
This PLL is found on i.MX6 SoCs
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/mach-imx/clk.h')
-rw-r--r-- | arch/arm/mach-imx/clk.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/clk.h b/arch/arm/mach-imx/clk.h index 7f5da75f30b3..331316d6a4de 100644 --- a/arch/arm/mach-imx/clk.h +++ b/arch/arm/mach-imx/clk.h | |||
@@ -11,6 +11,19 @@ struct clk *imx_clk_pllv1(const char *name, const char *parent, | |||
11 | struct clk *imx_clk_pllv2(const char *name, const char *parent, | 11 | struct clk *imx_clk_pllv2(const char *name, const char *parent, |
12 | void __iomem *base); | 12 | void __iomem *base); |
13 | 13 | ||
14 | enum imx_pllv3_type { | ||
15 | IMX_PLLV3_GENERIC, | ||
16 | IMX_PLLV3_SYS, | ||
17 | IMX_PLLV3_USB, | ||
18 | IMX_PLLV3_AV, | ||
19 | IMX_PLLV3_ENET, | ||
20 | IMX_PLLV3_MLB, | ||
21 | }; | ||
22 | |||
23 | struct clk *imx_clk_pllv3(enum imx_pllv3_type type, const char *name, | ||
24 | const char *parent_name, void __iomem *base, u32 gate_mask, | ||
25 | u32 div_mask); | ||
26 | |||
14 | static inline struct clk *imx_clk_fixed(const char *name, int rate) | 27 | static inline struct clk *imx_clk_fixed(const char *name, int rate) |
15 | { | 28 | { |
16 | return clk_register_fixed_rate(NULL, name, NULL, CLK_IS_ROOT, rate); | 29 | return clk_register_fixed_rate(NULL, name, NULL, CLK_IS_ROOT, rate); |