diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-13 13:58:20 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-13 13:58:20 -0500 |
commit | a11da7df6543b5f71a150b47c0d08ecf0799a0f3 (patch) | |
tree | 77eaac99426f64a0a8dc3b5d62c86138a8c72d43 /arch/arm/mach-omap2/clock_common_data.c | |
parent | b8edf848e9119bab9d999b9ca80d8520641810f2 (diff) | |
parent | 9c7466b217af784280d9fc841bbd559ef3bf33e9 (diff) |
Merge tag 'pm-merge' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC power management and clock changes from Olof Johansson:
"This branch contains a largeish set of updates of power management and
clock setup. The bulk of it is for OMAP/AM33xx platforms, but also a
few around hotplug/suspend/resume on Exynos.
It includes a split-up of some of the OMAP clock data into separate
files which adds to the diffstat, but gross delta is fairly reasonable."
* tag 'pm-merge' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (60 commits)
ARM: OMAP: Move plat-omap/dma-omap.h to include/linux/omap-dma.h
ASoC: OMAP: mcbsp fixes for enabling ARM multiplatform support
watchdog: OMAP: fixup for ARM multiplatform support
ARM: EXYNOS: Add flush_cache_all in suspend finisher
ARM: EXYNOS: Remove scu_enable from cpuidle
ARM: EXYNOS: Fix soft reboot hang after suspend/resume
ARM: EXYNOS: Add support for rtc wakeup
ARM: EXYNOS: fix the hotplug for Cortex-A15
ARM: OMAP2+: omap_device: Correct resource handling for DT boot
ARM: OMAP2+: hwmod: Add possibility to count hwmod resources based on type
ARM: OMAP2+: hwmod: Add support for per hwmod/module context lost count
ARM: OMAP2+: PRM: initialize some PRM functions early
ARM: OMAP2+: voltage: fixup oscillator handling when CONFIG_PM=n
ARM: OMAP4: USB: power down MUSB PHY during boot
ARM: OMAP2+: clock: Cleanup !CONFIG_COMMON_CLK parts
ARM: OMAP2xxx: clock: drop obsolete clock data
ARM: OMAP2: clock: Cleanup !CONFIG_COMMON_CLK parts
ARM: OMAP3+: DPLL: drop !CONFIG_COMMON_CLK sections
ARM: AM33xx: clock: drop obsolete clock data
ARM: OMAP3xxx: clk: drop obsolete clock data
...
Diffstat (limited to 'arch/arm/mach-omap2/clock_common_data.c')
-rw-r--r-- | arch/arm/mach-omap2/clock_common_data.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/arch/arm/mach-omap2/clock_common_data.c b/arch/arm/mach-omap2/clock_common_data.c index b9f3ba68148c..ef4d21bfb964 100644 --- a/arch/arm/mach-omap2/clock_common_data.c +++ b/arch/arm/mach-omap2/clock_common_data.c | |||
@@ -16,6 +16,7 @@ | |||
16 | * OMAP3xxx clock definition files. | 16 | * OMAP3xxx clock definition files. |
17 | */ | 17 | */ |
18 | 18 | ||
19 | #include <linux/clk-private.h> | ||
19 | #include "clock.h" | 20 | #include "clock.h" |
20 | 21 | ||
21 | /* clksel_rate data common to 24xx/343x */ | 22 | /* clksel_rate data common to 24xx/343x */ |
@@ -52,6 +53,13 @@ const struct clksel_rate div_1_0_rates[] = { | |||
52 | { .div = 0 }, | 53 | { .div = 0 }, |
53 | }; | 54 | }; |
54 | 55 | ||
56 | const struct clksel_rate div3_1to4_rates[] = { | ||
57 | { .div = 1, .val = 0, .flags = RATE_IN_4430 }, | ||
58 | { .div = 2, .val = 1, .flags = RATE_IN_4430 }, | ||
59 | { .div = 4, .val = 2, .flags = RATE_IN_4430 }, | ||
60 | { .div = 0 }, | ||
61 | }; | ||
62 | |||
55 | const struct clksel_rate div_1_1_rates[] = { | 63 | const struct clksel_rate div_1_1_rates[] = { |
56 | { .div = 1, .val = 1, .flags = RATE_IN_4430 | RATE_IN_AM33XX }, | 64 | { .div = 1, .val = 1, .flags = RATE_IN_4430 | RATE_IN_AM33XX }, |
57 | { .div = 0 }, | 65 | { .div = 0 }, |
@@ -109,14 +117,10 @@ const struct clksel_rate div31_1to31_rates[] = { | |||
109 | 117 | ||
110 | /* Clocks shared between various OMAP SoCs */ | 118 | /* Clocks shared between various OMAP SoCs */ |
111 | 119 | ||
112 | struct clk virt_19200000_ck = { | 120 | static struct clk_ops dummy_ck_ops = {}; |
113 | .name = "virt_19200000_ck", | ||
114 | .ops = &clkops_null, | ||
115 | .rate = 19200000, | ||
116 | }; | ||
117 | 121 | ||
118 | struct clk virt_26000000_ck = { | 122 | struct clk dummy_ck = { |
119 | .name = "virt_26000000_ck", | 123 | .name = "dummy_clk", |
120 | .ops = &clkops_null, | 124 | .ops = &dummy_ck_ops, |
121 | .rate = 26000000, | 125 | .flags = CLK_IS_BASIC, |
122 | }; | 126 | }; |