diff options
author | Rajendra Nayak <rnayak@ti.com> | 2012-04-27 06:23:48 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2012-11-12 21:10:18 -0500 |
commit | b4777a21381fd1f87be8c606a616b7f97f485d2b (patch) | |
tree | af45be72d14dde6fc899ac2ad5f9984f1bfa5cd5 /arch/arm/mach-omap2/clock.h | |
parent | 32cc002116b866151ca24c6e9110ba8a93754753 (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.h | 22 |
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 | ||
513 | extern void omap2_clkt_iclk_allow_idle(struct clk_hw_omap *clk); | ||
514 | extern void omap2_clkt_iclk_deny_idle(struct clk_hw_omap *clk); | ||
515 | #else | ||
512 | extern void omap2_clkt_iclk_allow_idle(struct clk *clk); | 516 | extern void omap2_clkt_iclk_allow_idle(struct clk *clk); |
513 | extern void omap2_clkt_iclk_deny_idle(struct clk *clk); | 517 | extern void omap2_clkt_iclk_deny_idle(struct clk *clk); |
518 | #endif | ||
514 | 519 | ||
515 | #ifdef CONFIG_COMMON_CLK | 520 | #ifdef CONFIG_COMMON_CLK |
516 | u8 omap2_init_dpll_parent(struct clk_hw *hw); | 521 | u8 omap2_init_dpll_parent(struct clk_hw *hw); |
@@ -561,8 +566,20 @@ extern const struct clk_hw_omap_ops clkhwops_omap3_dpll; | |||
561 | extern const struct clk_hw_omap_ops clkhwops_iclk_wait; | 566 | extern const struct clk_hw_omap_ops clkhwops_iclk_wait; |
562 | extern const struct clk_hw_omap_ops clkhwops_wait; | 567 | extern const struct clk_hw_omap_ops clkhwops_wait; |
563 | extern const struct clk_hw_omap_ops clkhwops_omap4_dpllmx; | 568 | extern const struct clk_hw_omap_ops clkhwops_omap4_dpllmx; |
564 | #endif | 569 | extern const struct clk_hw_omap_ops clkhwops_iclk; |
565 | 570 | extern const struct clk_hw_omap_ops clkhwops_omap3430es2_ssi_wait; | |
571 | extern const struct clk_hw_omap_ops clkhwops_omap3430es2_iclk_ssi_wait; | ||
572 | extern const struct clk_hw_omap_ops clkhwops_omap3430es2_dss_usbhost_wait; | ||
573 | extern const struct clk_hw_omap_ops clkhwops_omap3430es2_iclk_dss_usbhost_wait; | ||
574 | extern const struct clk_hw_omap_ops clkhwops_omap3430es2_iclk_hsotgusb_wait; | ||
575 | extern const struct clk_hw_omap_ops clkhwops_omap3430es2_hsotgusb_wait; | ||
576 | extern const struct clk_hw_omap_ops clkhwops_am35xx_ipss_module_wait; | ||
577 | extern const struct clk_hw_omap_ops clkhwops_am35xx_ipss_wait; | ||
578 | extern const struct clk_hw_omap_ops clkhwops_apll54; | ||
579 | extern const struct clk_hw_omap_ops clkhwops_apll96; | ||
580 | extern const struct clk_hw_omap_ops clkhwops_omap2xxx_dpll; | ||
581 | extern const struct clk_hw_omap_ops clkhwops_omap2430_i2chs_wait; | ||
582 | #else | ||
566 | extern const struct clkops clkops_omap2_iclk_dflt_wait; | 583 | extern const struct clkops clkops_omap2_iclk_dflt_wait; |
567 | extern const struct clkops clkops_omap2_iclk_dflt; | 584 | extern const struct clkops clkops_omap2_iclk_dflt; |
568 | extern const struct clkops clkops_omap2_iclk_idle_only; | 585 | extern const struct clkops clkops_omap2_iclk_idle_only; |
@@ -571,6 +588,7 @@ extern const struct clkops clkops_omap2xxx_dpll_ops; | |||
571 | extern const struct clkops clkops_omap3_noncore_dpll_ops; | 588 | extern const struct clkops clkops_omap3_noncore_dpll_ops; |
572 | extern const struct clkops clkops_omap3_core_dpll_ops; | 589 | extern const struct clkops clkops_omap3_core_dpll_ops; |
573 | extern const struct clkops clkops_omap4_dpllmx_ops; | 590 | extern 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 */ |
576 | extern const struct clksel_rate div_1_0_rates[]; | 594 | extern const struct clksel_rate div_1_0_rates[]; |