aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx/clk.h
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2012-04-04 16:02:28 +0800
committerSascha Hauer <s.hauer@pengutronix.de>2012-05-02 12:08:06 +0200
commita3f6b9dbf2a964b85f0523e577807d6f63d6b29d (patch)
tree118195636ea74ca8b92d40b5be03c4cae0f795b6 /arch/arm/mach-imx/clk.h
parenta547b816a879b235ae0f90ae32d74effbb20d6d1 (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.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/clk.h b/arch/arm/mach-imx/clk.h
index 7f5da75f30b..331316d6a4d 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,
struct clk *imx_clk_pllv2(const char *name, const char *parent,
void __iomem *base);
+enum imx_pllv3_type {
+ IMX_PLLV3_GENERIC,
+ IMX_PLLV3_SYS,
+ IMX_PLLV3_USB,
+ IMX_PLLV3_AV,
+ IMX_PLLV3_ENET,
+ IMX_PLLV3_MLB,
+};
+
+struct clk *imx_clk_pllv3(enum imx_pllv3_type type, const char *name,
+ const char *parent_name, void __iomem *base, u32 gate_mask,
+ u32 div_mask);
+
static inline struct clk *imx_clk_fixed(const char *name, int rate)
{
return clk_register_fixed_rate(NULL, name, NULL, CLK_IS_ROOT, rate);