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/clock34xx.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/clock34xx.c')
-rw-r--r-- | arch/arm/mach-omap2/clock34xx.c | 51 |
1 files changed, 19 insertions, 32 deletions
diff --git a/arch/arm/mach-omap2/clock34xx.c b/arch/arm/mach-omap2/clock34xx.c index e41819ba7482..4596468e50ab 100644 --- a/arch/arm/mach-omap2/clock34xx.c +++ b/arch/arm/mach-omap2/clock34xx.c | |||
@@ -37,7 +37,7 @@ | |||
37 | * from the CM_{I,F}CLKEN bit. Pass back the correct info via | 37 | * from the CM_{I,F}CLKEN bit. Pass back the correct info via |
38 | * @idlest_reg and @idlest_bit. No return value. | 38 | * @idlest_reg and @idlest_bit. No return value. |
39 | */ | 39 | */ |
40 | static void omap3430es2_clk_ssi_find_idlest(struct clk *clk, | 40 | static void omap3430es2_clk_ssi_find_idlest(struct clk_hw_omap *clk, |
41 | void __iomem **idlest_reg, | 41 | void __iomem **idlest_reg, |
42 | u8 *idlest_bit, | 42 | u8 *idlest_bit, |
43 | u8 *idlest_val) | 43 | u8 *idlest_val) |
@@ -49,21 +49,16 @@ static void omap3430es2_clk_ssi_find_idlest(struct clk *clk, | |||
49 | *idlest_bit = OMAP3430ES2_ST_SSI_IDLE_SHIFT; | 49 | *idlest_bit = OMAP3430ES2_ST_SSI_IDLE_SHIFT; |
50 | *idlest_val = OMAP34XX_CM_IDLEST_VAL; | 50 | *idlest_val = OMAP34XX_CM_IDLEST_VAL; |
51 | } | 51 | } |
52 | 52 | const struct clk_hw_omap_ops clkhwops_omap3430es2_ssi_wait = { | |
53 | const struct clkops clkops_omap3430es2_ssi_wait = { | ||
54 | .enable = omap2_dflt_clk_enable, | ||
55 | .disable = omap2_dflt_clk_disable, | ||
56 | .find_idlest = omap3430es2_clk_ssi_find_idlest, | 53 | .find_idlest = omap3430es2_clk_ssi_find_idlest, |
57 | .find_companion = omap2_clk_dflt_find_companion, | 54 | .find_companion = omap2_clk_dflt_find_companion, |
58 | }; | 55 | }; |
59 | 56 | ||
60 | const struct clkops clkops_omap3430es2_iclk_ssi_wait = { | 57 | const struct clk_hw_omap_ops clkhwops_omap3430es2_iclk_ssi_wait = { |
61 | .enable = omap2_dflt_clk_enable, | ||
62 | .disable = omap2_dflt_clk_disable, | ||
63 | .find_idlest = omap3430es2_clk_ssi_find_idlest, | ||
64 | .find_companion = omap2_clk_dflt_find_companion, | ||
65 | .allow_idle = omap2_clkt_iclk_allow_idle, | 58 | .allow_idle = omap2_clkt_iclk_allow_idle, |
66 | .deny_idle = omap2_clkt_iclk_deny_idle, | 59 | .deny_idle = omap2_clkt_iclk_deny_idle, |
60 | .find_idlest = omap3430es2_clk_ssi_find_idlest, | ||
61 | .find_companion = omap2_clk_dflt_find_companion, | ||
67 | }; | 62 | }; |
68 | 63 | ||
69 | /** | 64 | /** |
@@ -80,7 +75,7 @@ const struct clkops clkops_omap3430es2_iclk_ssi_wait = { | |||
80 | * default find_idlest code assumes that they are at the same | 75 | * default find_idlest code assumes that they are at the same |
81 | * position.) No return value. | 76 | * position.) No return value. |
82 | */ | 77 | */ |
83 | static void omap3430es2_clk_dss_usbhost_find_idlest(struct clk *clk, | 78 | static void omap3430es2_clk_dss_usbhost_find_idlest(struct clk_hw_omap *clk, |
84 | void __iomem **idlest_reg, | 79 | void __iomem **idlest_reg, |
85 | u8 *idlest_bit, | 80 | u8 *idlest_bit, |
86 | u8 *idlest_val) | 81 | u8 *idlest_val) |
@@ -94,20 +89,16 @@ static void omap3430es2_clk_dss_usbhost_find_idlest(struct clk *clk, | |||
94 | *idlest_val = OMAP34XX_CM_IDLEST_VAL; | 89 | *idlest_val = OMAP34XX_CM_IDLEST_VAL; |
95 | } | 90 | } |
96 | 91 | ||
97 | const struct clkops clkops_omap3430es2_dss_usbhost_wait = { | 92 | const struct clk_hw_omap_ops clkhwops_omap3430es2_dss_usbhost_wait = { |
98 | .enable = omap2_dflt_clk_enable, | ||
99 | .disable = omap2_dflt_clk_disable, | ||
100 | .find_idlest = omap3430es2_clk_dss_usbhost_find_idlest, | 93 | .find_idlest = omap3430es2_clk_dss_usbhost_find_idlest, |
101 | .find_companion = omap2_clk_dflt_find_companion, | 94 | .find_companion = omap2_clk_dflt_find_companion, |
102 | }; | 95 | }; |
103 | 96 | ||
104 | const struct clkops clkops_omap3430es2_iclk_dss_usbhost_wait = { | 97 | const struct clk_hw_omap_ops clkhwops_omap3430es2_iclk_dss_usbhost_wait = { |
105 | .enable = omap2_dflt_clk_enable, | ||
106 | .disable = omap2_dflt_clk_disable, | ||
107 | .find_idlest = omap3430es2_clk_dss_usbhost_find_idlest, | ||
108 | .find_companion = omap2_clk_dflt_find_companion, | ||
109 | .allow_idle = omap2_clkt_iclk_allow_idle, | 98 | .allow_idle = omap2_clkt_iclk_allow_idle, |
110 | .deny_idle = omap2_clkt_iclk_deny_idle, | 99 | .deny_idle = omap2_clkt_iclk_deny_idle, |
100 | .find_idlest = omap3430es2_clk_dss_usbhost_find_idlest, | ||
101 | .find_companion = omap2_clk_dflt_find_companion, | ||
111 | }; | 102 | }; |
112 | 103 | ||
113 | /** | 104 | /** |
@@ -121,7 +112,7 @@ const struct clkops clkops_omap3430es2_iclk_dss_usbhost_wait = { | |||
121 | * shift from the CM_{I,F}CLKEN bit. Pass back the correct info via | 112 | * shift from the CM_{I,F}CLKEN bit. Pass back the correct info via |
122 | * @idlest_reg and @idlest_bit. No return value. | 113 | * @idlest_reg and @idlest_bit. No return value. |
123 | */ | 114 | */ |
124 | static void omap3430es2_clk_hsotgusb_find_idlest(struct clk *clk, | 115 | static void omap3430es2_clk_hsotgusb_find_idlest(struct clk_hw_omap *clk, |
125 | void __iomem **idlest_reg, | 116 | void __iomem **idlest_reg, |
126 | u8 *idlest_bit, | 117 | u8 *idlest_bit, |
127 | u8 *idlest_val) | 118 | u8 *idlest_val) |
@@ -134,18 +125,14 @@ static void omap3430es2_clk_hsotgusb_find_idlest(struct clk *clk, | |||
134 | *idlest_val = OMAP34XX_CM_IDLEST_VAL; | 125 | *idlest_val = OMAP34XX_CM_IDLEST_VAL; |
135 | } | 126 | } |
136 | 127 | ||
137 | const struct clkops clkops_omap3430es2_hsotgusb_wait = { | 128 | const struct clk_hw_omap_ops clkhwops_omap3430es2_iclk_hsotgusb_wait = { |
138 | .enable = omap2_dflt_clk_enable, | 129 | .allow_idle = omap2_clkt_iclk_allow_idle, |
139 | .disable = omap2_dflt_clk_disable, | 130 | .deny_idle = omap2_clkt_iclk_deny_idle, |
140 | .find_idlest = omap3430es2_clk_hsotgusb_find_idlest, | 131 | .find_idlest = omap3430es2_clk_hsotgusb_find_idlest, |
141 | .find_companion = omap2_clk_dflt_find_companion, | 132 | .find_companion = omap2_clk_dflt_find_companion, |
142 | }; | 133 | }; |
143 | 134 | ||
144 | const struct clkops clkops_omap3430es2_iclk_hsotgusb_wait = { | 135 | const struct clk_hw_omap_ops clkhwops_omap3430es2_hsotgusb_wait = { |
145 | .enable = omap2_dflt_clk_enable, | ||
146 | .disable = omap2_dflt_clk_disable, | ||
147 | .find_idlest = omap3430es2_clk_hsotgusb_find_idlest, | 136 | .find_idlest = omap3430es2_clk_hsotgusb_find_idlest, |
148 | .find_companion = omap2_clk_dflt_find_companion, | 137 | .find_companion = omap2_clk_dflt_find_companion, |
149 | .allow_idle = omap2_clkt_iclk_allow_idle, | ||
150 | .deny_idle = omap2_clkt_iclk_deny_idle, | ||
151 | }; | 138 | }; |