diff options
author | Tero Kristo <t-kristo@ti.com> | 2014-11-27 10:51:35 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2015-01-07 13:54:40 -0500 |
commit | 56ad669184a0455c096eeb525a14e8a5ab7c1b25 (patch) | |
tree | 01d224424c7dd9ce7ad9e64ab84b43fe57752ae4 /arch/arm/mach-omap2 | |
parent | 9b455e8d7cd5a9523bb0f696070173681cb45238 (diff) |
ARM: OMAP2: clock: remove unused apll code
APLL clock type is no longer needed as the legacy clock support is removed.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
[tony@atomide.com: updated to apply]
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/mach-omap2/clkt2xxx_apll.c | 71 | ||||
-rw-r--r-- | arch/arm/mach-omap2/clock2xxx.h | 2 |
3 files changed, 0 insertions, 74 deletions
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index 5d27dfdef66b..9fee2ad1c0ee 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile | |||
@@ -181,7 +181,6 @@ obj-$(CONFIG_SOC_DRA7XX) += clockdomains7xx_data.o | |||
181 | obj-$(CONFIG_ARCH_OMAP2) += $(clock-common) clock2xxx.o | 181 | obj-$(CONFIG_ARCH_OMAP2) += $(clock-common) clock2xxx.o |
182 | obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_dpllcore.o | 182 | obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_dpllcore.o |
183 | obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_virt_prcm_set.o | 183 | obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_virt_prcm_set.o |
184 | obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_apll.o | ||
185 | obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_dpll.o clkt_iclk.o | 184 | obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_dpll.o clkt_iclk.o |
186 | obj-$(CONFIG_SOC_OMAP2430) += clock2430.o | 185 | obj-$(CONFIG_SOC_OMAP2430) += clock2430.o |
187 | obj-$(CONFIG_ARCH_OMAP3) += $(clock-common) clock3xxx.o | 186 | obj-$(CONFIG_ARCH_OMAP3) += $(clock-common) clock3xxx.o |
diff --git a/arch/arm/mach-omap2/clkt2xxx_apll.c b/arch/arm/mach-omap2/clkt2xxx_apll.c deleted file mode 100644 index 02cb08875326..000000000000 --- a/arch/arm/mach-omap2/clkt2xxx_apll.c +++ /dev/null | |||
@@ -1,71 +0,0 @@ | |||
1 | /* | ||
2 | * OMAP2xxx APLL clock control functions | ||
3 | * | ||
4 | * Copyright (C) 2005-2008 Texas Instruments, Inc. | ||
5 | * Copyright (C) 2004-2010 Nokia Corporation | ||
6 | * | ||
7 | * Contacts: | ||
8 | * Richard Woodruff <r-woodruff2@ti.com> | ||
9 | * Paul Walmsley | ||
10 | * | ||
11 | * Based on earlier work by Tuukka Tikkanen, Tony Lindgren, | ||
12 | * Gordon McNutt and RidgeRun, Inc. | ||
13 | * | ||
14 | * This program is free software; you can redistribute it and/or modify | ||
15 | * it under the terms of the GNU General Public License version 2 as | ||
16 | * published by the Free Software Foundation. | ||
17 | */ | ||
18 | #undef DEBUG | ||
19 | |||
20 | #include <linux/kernel.h> | ||
21 | #include <linux/clk.h> | ||
22 | #include <linux/io.h> | ||
23 | |||
24 | |||
25 | #include "clock.h" | ||
26 | #include "clock2xxx.h" | ||
27 | #include "cm2xxx.h" | ||
28 | #include "cm-regbits-24xx.h" | ||
29 | |||
30 | /* CM_CLKEN_PLL.EN_{54,96}M_PLL options (24XX) */ | ||
31 | #define EN_APLL_STOPPED 0 | ||
32 | #define EN_APLL_LOCKED 3 | ||
33 | |||
34 | /* CM_CLKSEL1_PLL.APLLS_CLKIN options (24XX) */ | ||
35 | #define APLLS_CLKIN_19_2MHZ 0 | ||
36 | #define APLLS_CLKIN_13MHZ 2 | ||
37 | #define APLLS_CLKIN_12MHZ 3 | ||
38 | |||
39 | /* Private functions */ | ||
40 | |||
41 | static void _apll96_allow_idle(struct clk_hw_omap *clk) | ||
42 | { | ||
43 | omap2xxx_cm_set_apll96_auto_low_power_stop(); | ||
44 | } | ||
45 | |||
46 | static void _apll96_deny_idle(struct clk_hw_omap *clk) | ||
47 | { | ||
48 | omap2xxx_cm_set_apll96_disable_autoidle(); | ||
49 | } | ||
50 | |||
51 | static void _apll54_allow_idle(struct clk_hw_omap *clk) | ||
52 | { | ||
53 | omap2xxx_cm_set_apll54_auto_low_power_stop(); | ||
54 | } | ||
55 | |||
56 | static void _apll54_deny_idle(struct clk_hw_omap *clk) | ||
57 | { | ||
58 | omap2xxx_cm_set_apll54_disable_autoidle(); | ||
59 | } | ||
60 | |||
61 | /* Public data */ | ||
62 | const struct clk_hw_omap_ops clkhwops_apll54 = { | ||
63 | .allow_idle = _apll54_allow_idle, | ||
64 | .deny_idle = _apll54_deny_idle, | ||
65 | }; | ||
66 | |||
67 | const struct clk_hw_omap_ops clkhwops_apll96 = { | ||
68 | .allow_idle = _apll96_allow_idle, | ||
69 | .deny_idle = _apll96_deny_idle, | ||
70 | }; | ||
71 | |||
diff --git a/arch/arm/mach-omap2/clock2xxx.h b/arch/arm/mach-omap2/clock2xxx.h index 364a4cc7f11b..125c37614848 100644 --- a/arch/arm/mach-omap2/clock2xxx.h +++ b/arch/arm/mach-omap2/clock2xxx.h | |||
@@ -41,7 +41,5 @@ int omap2430_clk_init(void); | |||
41 | #endif | 41 | #endif |
42 | 42 | ||
43 | extern struct clk_hw *dclk_hw; | 43 | extern struct clk_hw *dclk_hw; |
44 | int omap2_enable_osc_ck(struct clk_hw *hw); | ||
45 | void omap2_disable_osc_ck(struct clk_hw *hw); | ||
46 | 44 | ||
47 | #endif | 45 | #endif |