aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/clock.h
diff options
context:
space:
mode:
authorRajendra Nayak <rnayak@ti.com>2012-04-27 06:23:48 -0400
committerPaul Walmsley <paul@pwsan.com>2012-11-12 21:10:18 -0500
commitb4777a21381fd1f87be8c606a616b7f97f485d2b (patch)
treeaf45be72d14dde6fc899ac2ad5f9984f1bfa5cd5 /arch/arm/mach-omap2/clock.h
parent32cc002116b866151ca24c6e9110ba8a93754753 (diff)
ARM: OMAP3: clock: Convert to common clk
Convert all OMAP3 specific platform files to use COMMON clk and keep all the changes under the CONFIG_COMMON_CLK macro check so it does not break any existing code. At a later point switch to COMMON clk and get rid of all old/legacy code. Signed-off-by: Rajendra Nayak <rnayak@ti.com> Signed-off-by: Mike Turquette <mturquette@ti.com> Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/clock.h')
-rw-r--r--arch/arm/mach-omap2/clock.h22
1 files changed, 20 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/clock.h b/arch/arm/mach-omap2/clock.h
index 5a4f4fe42b9b..6800d5f82050 100644
--- a/arch/arm/mach-omap2/clock.h
+++ b/arch/arm/mach-omap2/clock.h
@@ -509,8 +509,13 @@ int omap2_clksel_set_parent(struct clk *clk, struct clk *new_parent);
509#endif 509#endif
510 510
511/* clkt_iclk.c public functions */ 511/* clkt_iclk.c public functions */
512#ifdef CONFIG_COMMON_CLK
513extern void omap2_clkt_iclk_allow_idle(struct clk_hw_omap *clk);
514extern void omap2_clkt_iclk_deny_idle(struct clk_hw_omap *clk);
515#else
512extern void omap2_clkt_iclk_allow_idle(struct clk *clk); 516extern void omap2_clkt_iclk_allow_idle(struct clk *clk);
513extern void omap2_clkt_iclk_deny_idle(struct clk *clk); 517extern void omap2_clkt_iclk_deny_idle(struct clk *clk);
518#endif
514 519
515#ifdef CONFIG_COMMON_CLK 520#ifdef CONFIG_COMMON_CLK
516u8 omap2_init_dpll_parent(struct clk_hw *hw); 521u8 omap2_init_dpll_parent(struct clk_hw *hw);
@@ -561,8 +566,20 @@ extern const struct clk_hw_omap_ops clkhwops_omap3_dpll;
561extern const struct clk_hw_omap_ops clkhwops_iclk_wait; 566extern const struct clk_hw_omap_ops clkhwops_iclk_wait;
562extern const struct clk_hw_omap_ops clkhwops_wait; 567extern const struct clk_hw_omap_ops clkhwops_wait;
563extern const struct clk_hw_omap_ops clkhwops_omap4_dpllmx; 568extern const struct clk_hw_omap_ops clkhwops_omap4_dpllmx;
564#endif 569extern const struct clk_hw_omap_ops clkhwops_iclk;
565 570extern const struct clk_hw_omap_ops clkhwops_omap3430es2_ssi_wait;
571extern const struct clk_hw_omap_ops clkhwops_omap3430es2_iclk_ssi_wait;
572extern const struct clk_hw_omap_ops clkhwops_omap3430es2_dss_usbhost_wait;
573extern const struct clk_hw_omap_ops clkhwops_omap3430es2_iclk_dss_usbhost_wait;
574extern const struct clk_hw_omap_ops clkhwops_omap3430es2_iclk_hsotgusb_wait;
575extern const struct clk_hw_omap_ops clkhwops_omap3430es2_hsotgusb_wait;
576extern const struct clk_hw_omap_ops clkhwops_am35xx_ipss_module_wait;
577extern const struct clk_hw_omap_ops clkhwops_am35xx_ipss_wait;
578extern const struct clk_hw_omap_ops clkhwops_apll54;
579extern const struct clk_hw_omap_ops clkhwops_apll96;
580extern const struct clk_hw_omap_ops clkhwops_omap2xxx_dpll;
581extern const struct clk_hw_omap_ops clkhwops_omap2430_i2chs_wait;
582#else
566extern const struct clkops clkops_omap2_iclk_dflt_wait; 583extern const struct clkops clkops_omap2_iclk_dflt_wait;
567extern const struct clkops clkops_omap2_iclk_dflt; 584extern const struct clkops clkops_omap2_iclk_dflt;
568extern const struct clkops clkops_omap2_iclk_idle_only; 585extern const struct clkops clkops_omap2_iclk_idle_only;
@@ -571,6 +588,7 @@ extern const struct clkops clkops_omap2xxx_dpll_ops;
571extern const struct clkops clkops_omap3_noncore_dpll_ops; 588extern const struct clkops clkops_omap3_noncore_dpll_ops;
572extern const struct clkops clkops_omap3_core_dpll_ops; 589extern const struct clkops clkops_omap3_core_dpll_ops;
573extern const struct clkops clkops_omap4_dpllmx_ops; 590extern const struct clkops clkops_omap4_dpllmx_ops;
591#endif /* CONFIG_COMMON_CLK */
574 592
575/* clksel_rate blocks shared between OMAP44xx and AM33xx */ 593/* clksel_rate blocks shared between OMAP44xx and AM33xx */
576extern const struct clksel_rate div_1_0_rates[]; 594extern const struct clksel_rate div_1_0_rates[];