diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2012-08-27 15:45:50 +0200 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2012-09-06 15:57:47 -0700 |
commit | 3b01f87be21ce6b45ff4bd7b9d044aa9233bcc38 (patch) | |
tree | c2c025ca2656cd7aa4fdf56a9d365da2cecec9f8 /drivers/clk/ux500/clk.h | |
parent | 672575e1dea4c6fe6b0579b94aa1c3af08a1a812 (diff) | |
download | linux-stable-3b01f87be21ce6b45ff4bd7b9d044aa9233bcc38.tar.gz linux-stable-3b01f87be21ce6b45ff4bd7b9d044aa9233bcc38.tar.bz2 linux-stable-3b01f87be21ce6b45ff4bd7b9d044aa9233bcc38.zip |
clk: ux500: Adapt PRCMU and PRCC clocks for common clk
First version of common clock implementation of PRCMU clocks
and PRCC clocks for ux500 platforms.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Linus Walleij <linus.walleij@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.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/drivers/clk/ux500/clk.h b/drivers/clk/ux500/clk.h new file mode 100644 index 000000000000..32085aa98865 --- /dev/null +++ b/drivers/clk/ux500/clk.h @@ -0,0 +1,43 @@ +/* + * Clocks for ux500 platforms + * + * Copyright (C) 2012 ST-Ericsson SA + * Author: Ulf Hansson <ulf.hansson@linaro.org> + * + * License terms: GNU General Public License (GPL) version 2 + */ + +#ifndef __UX500_CLK_H +#define __UX500_CLK_H + +#include <linux/clk.h> + +struct clk *clk_reg_prcc_pclk(const char *name, + const char *parent_name, + unsigned int phy_base, + u32 cg_sel, + unsigned long flags); + +struct clk *clk_reg_prcc_kclk(const char *name, + const char *parent_name, + unsigned int phy_base, + u32 cg_sel, + unsigned long flags); + +struct clk *clk_reg_prcmu_scalable(const char *name, + const char *parent_name, + u8 cg_sel, + unsigned long rate, + unsigned long flags); + +struct clk *clk_reg_prcmu_gate(const char *name, + const char *parent_name, + u8 cg_sel, + unsigned long flags); + +struct clk *clk_reg_prcmu_opp_gate(const char *name, + const char *parent_name, + u8 cg_sel, + unsigned long flags); + +#endif /* __UX500_CLK_H */ |