diff options
author | dushyanth.sr <dushyanth.sr@stericsson.com> | 2010-04-09 14:22:37 +0530 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2010-09-02 22:44:59 -0600 |
commit | f2a2d355949877dd2e97a1a2ee3ae30456f307e3 (patch) | |
tree | 81a5f14a02b3d284ae55b0ad041fb900d81fc897 /arch/arm/mach-ux500/clock.h | |
parent | 207849b3a717fc560283ffe43d3a753c05242e58 (diff) |
Clock.c and Clock.h : Modification to update function. Clock tree updation along with PLL enable/disable function
Signed-off-by: dushyanth.sr <dushyanth.sr@stericsson.com>
Diffstat (limited to 'arch/arm/mach-ux500/clock.h')
-rwxr-xr-x | arch/arm/mach-ux500/clock.h | 34 |
1 files changed, 12 insertions, 22 deletions
diff --git a/arch/arm/mach-ux500/clock.h b/arch/arm/mach-ux500/clock.h index 3287c4ed8ae..c6790968357 100755 --- a/arch/arm/mach-ux500/clock.h +++ b/arch/arm/mach-ux500/clock.h @@ -30,21 +30,7 @@ extern int __init clk_init(void); #define MODE_CLK38_4MHZ 0x2 #define MODE_PLL_CLK 0x4 -#define MAX_CLK_SRC 3 -#define MAX_CLK_SRC_PLL 3 - -enum clk_pll { - SOC0_PLL, - SOC1_PLL, - DDR_PLL, -}; - -enum clk_main { - ULP38M4, - SYSCLK, - CLK32K, -}; - +/* Function declarion */ void update_clk_tree(void); /*CLK38 clk src macros */ @@ -57,10 +43,6 @@ struct clkops { unsigned long (*get_rate) (struct clk *); }; -struct clk_src { - int usage_count; -}; - /** * struct clk - ux500 clock structure * @ops: pointer to clkops struct used to control this clock @@ -123,18 +105,26 @@ struct clk { struct clk *parent_cluster; struct clk *parent_periph; - struct clk *clk_src; - int is_clk_src; + struct clk *clk_src; + int is_clk_src; }; -#define DEFINE_CLK_SRC(_name) \ +#define DEFINE_CLK_SRC_PLL(_name) \ struct clk clk_##_name = { \ .name = #_name, \ + .ops = &clk_pll_ops, \ .clk_src = NULL, \ .is_clk_src = 1, \ .enabled = 0 \ } +#define DEFINE_CLK_SRC_MAIN(_name) \ +struct clk clk_##_name = { \ + .name = #_name, \ + .clk_src = NULL, \ + .is_clk_src = 2, \ + .enabled = 0 \ + } #define DEFINE_PRCMU_CLK(_name, _cg_off, _cg_bit, _reg) \ struct clk clk_##_name = { \ |