diff options
author | Paul Walmsley <paul@pwsan.com> | 2010-12-21 23:05:16 -0500 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2010-12-21 23:05:16 -0500 |
commit | 72e06d087204f3bc9acf281717b90ebf0b9731f7 (patch) | |
tree | 358524d58e5fdb906507ffc9549758c14fce9fbe | |
parent | 1540f214065982e6cbc6b8da1fe65a15e358f7c5 (diff) |
OMAP2+: powerdomain: move header file from plat-omap to mach-omap2
The OMAP powerdomain code and data is all OMAP2+-specific. This seems
unlikely to change any time soon. Move plat-omap/include/plat/powerdomain.h
to mach-omap2/powerdomain.h. The primary point of doing this is to remove
the temptation for unrelated upper-layer code to access powerdomain code
and data directly.
As part of this process, remove the references to powerdomain data
from the GPIO "driver" and the OMAP PM no-op layer, both in plat-omap.
Change the DSPBridge code to point to the new location for the
powerdomain headers. The DSPBridge code should not be including the
powerdomain headers; these should be removed.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Omar Ramirez Luna <omar.ramirez@ti.com>
Cc: Felipe Contreras <felipe.contreras@gmail.com>
Cc: Greg Kroah-Hartman <greg@kroah.com>
27 files changed, 45 insertions, 72 deletions
diff --git a/arch/arm/mach-omap2/clockdomain.c b/arch/arm/mach-omap2/clockdomain.c index 650bf685dd99..e20b98636ab4 100644 --- a/arch/arm/mach-omap2/clockdomain.c +++ b/arch/arm/mach-omap2/clockdomain.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #include "prcm44xx.h" | 34 | #include "prcm44xx.h" |
35 | 35 | ||
36 | #include <plat/clock.h> | 36 | #include <plat/clock.h> |
37 | #include <plat/powerdomain.h> | 37 | #include "powerdomain.h" |
38 | #include "clockdomain.h" | 38 | #include "clockdomain.h" |
39 | #include <plat/prcm.h> | 39 | #include <plat/prcm.h> |
40 | 40 | ||
diff --git a/arch/arm/mach-omap2/clockdomain.h b/arch/arm/mach-omap2/clockdomain.h index 372c64669868..de3faa20b46b 100644 --- a/arch/arm/mach-omap2/clockdomain.h +++ b/arch/arm/mach-omap2/clockdomain.h | |||
@@ -18,7 +18,7 @@ | |||
18 | 18 | ||
19 | #include <linux/init.h> | 19 | #include <linux/init.h> |
20 | 20 | ||
21 | #include <plat/powerdomain.h> | 21 | #include "powerdomain.h" |
22 | #include <plat/clock.h> | 22 | #include <plat/clock.h> |
23 | #include <plat/cpu.h> | 23 | #include <plat/cpu.h> |
24 | 24 | ||
diff --git a/arch/arm/mach-omap2/cpuidle34xx.c b/arch/arm/mach-omap2/cpuidle34xx.c index f518270b3e83..f3e043fe5eb8 100644 --- a/arch/arm/mach-omap2/cpuidle34xx.c +++ b/arch/arm/mach-omap2/cpuidle34xx.c | |||
@@ -27,7 +27,7 @@ | |||
27 | 27 | ||
28 | #include <plat/prcm.h> | 28 | #include <plat/prcm.h> |
29 | #include <plat/irqs.h> | 29 | #include <plat/irqs.h> |
30 | #include <plat/powerdomain.h> | 30 | #include "powerdomain.h" |
31 | #include "clockdomain.h" | 31 | #include "clockdomain.h" |
32 | #include <plat/serial.h> | 32 | #include <plat/serial.h> |
33 | 33 | ||
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index 545182d9faa6..e66687b0b9de 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c | |||
@@ -39,7 +39,7 @@ | |||
39 | #include "io.h" | 39 | #include "io.h" |
40 | 40 | ||
41 | #include <plat/omap-pm.h> | 41 | #include <plat/omap-pm.h> |
42 | #include <plat/powerdomain.h> | 42 | #include "powerdomain.h" |
43 | 43 | ||
44 | #include "clockdomain.h" | 44 | #include "clockdomain.h" |
45 | #include <plat/omap_hwmod.h> | 45 | #include <plat/omap_hwmod.h> |
diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index e1358ba51395..12856eb7b179 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c | |||
@@ -140,7 +140,7 @@ | |||
140 | #include <plat/common.h> | 140 | #include <plat/common.h> |
141 | #include <plat/cpu.h> | 141 | #include <plat/cpu.h> |
142 | #include "clockdomain.h" | 142 | #include "clockdomain.h" |
143 | #include <plat/powerdomain.h> | 143 | #include "powerdomain.h" |
144 | #include <plat/clock.h> | 144 | #include <plat/clock.h> |
145 | #include <plat/omap_hwmod.h> | 145 | #include <plat/omap_hwmod.h> |
146 | #include <plat/prcm.h> | 146 | #include <plat/prcm.h> |
diff --git a/arch/arm/mach-omap2/pm-debug.c b/arch/arm/mach-omap2/pm-debug.c index 3f989896a36c..e535082b0c2e 100644 --- a/arch/arm/mach-omap2/pm-debug.c +++ b/arch/arm/mach-omap2/pm-debug.c | |||
@@ -29,7 +29,7 @@ | |||
29 | 29 | ||
30 | #include <plat/clock.h> | 30 | #include <plat/clock.h> |
31 | #include <plat/board.h> | 31 | #include <plat/board.h> |
32 | #include <plat/powerdomain.h> | 32 | #include "powerdomain.h" |
33 | #include "clockdomain.h" | 33 | #include "clockdomain.h" |
34 | #include <plat/dmtimer.h> | 34 | #include <plat/dmtimer.h> |
35 | 35 | ||
diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c index 24228e9dd496..227a211921c3 100644 --- a/arch/arm/mach-omap2/pm.c +++ b/arch/arm/mach-omap2/pm.c | |||
@@ -18,7 +18,7 @@ | |||
18 | #include <plat/omap_device.h> | 18 | #include <plat/omap_device.h> |
19 | #include <plat/common.h> | 19 | #include <plat/common.h> |
20 | 20 | ||
21 | #include <plat/powerdomain.h> | 21 | #include "powerdomain.h" |
22 | #include "clockdomain.h" | 22 | #include "clockdomain.h" |
23 | 23 | ||
24 | static struct omap_device_pm_latency *pm_lats; | 24 | static struct omap_device_pm_latency *pm_lats; |
diff --git a/arch/arm/mach-omap2/pm.h b/arch/arm/mach-omap2/pm.h index 8b4f45eba1b5..482df7fc1585 100644 --- a/arch/arm/mach-omap2/pm.h +++ b/arch/arm/mach-omap2/pm.h | |||
@@ -11,7 +11,7 @@ | |||
11 | #ifndef __ARCH_ARM_MACH_OMAP2_PM_H | 11 | #ifndef __ARCH_ARM_MACH_OMAP2_PM_H |
12 | #define __ARCH_ARM_MACH_OMAP2_PM_H | 12 | #define __ARCH_ARM_MACH_OMAP2_PM_H |
13 | 13 | ||
14 | #include <plat/powerdomain.h> | 14 | #include "powerdomain.h" |
15 | 15 | ||
16 | extern void *omap3_secure_ram_storage; | 16 | extern void *omap3_secure_ram_storage; |
17 | extern void omap3_pm_off_mode_enable(int); | 17 | extern void omap3_pm_off_mode_enable(int); |
diff --git a/arch/arm/mach-omap2/pm24xx.c b/arch/arm/mach-omap2/pm24xx.c index f6aef7687b8a..2844b84f8d46 100644 --- a/arch/arm/mach-omap2/pm24xx.c +++ b/arch/arm/mach-omap2/pm24xx.c | |||
@@ -50,7 +50,7 @@ | |||
50 | #include "pm.h" | 50 | #include "pm.h" |
51 | #include "control.h" | 51 | #include "control.h" |
52 | 52 | ||
53 | #include <plat/powerdomain.h> | 53 | #include "powerdomain.h" |
54 | #include "clockdomain.h" | 54 | #include "clockdomain.h" |
55 | 55 | ||
56 | #ifdef CONFIG_SUSPEND | 56 | #ifdef CONFIG_SUSPEND |
@@ -120,7 +120,7 @@ static void omap2_enter_full_retention(void) | |||
120 | l = omap_ctrl_readl(OMAP2_CONTROL_DEVCONF0) | OMAP24XX_USBSTANDBYCTRL; | 120 | l = omap_ctrl_readl(OMAP2_CONTROL_DEVCONF0) | OMAP24XX_USBSTANDBYCTRL; |
121 | omap_ctrl_writel(l, OMAP2_CONTROL_DEVCONF0); | 121 | omap_ctrl_writel(l, OMAP2_CONTROL_DEVCONF0); |
122 | 122 | ||
123 | omap2_gpio_prepare_for_idle(PWRDM_POWER_RET); | 123 | omap2_gpio_prepare_for_idle(0); |
124 | 124 | ||
125 | if (omap2_pm_debug) { | 125 | if (omap2_pm_debug) { |
126 | omap2_pm_dump(0, 0, 0); | 126 | omap2_pm_dump(0, 0, 0); |
diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index 0fae3d6b76e8..5efd1fb8c640 100644 --- a/arch/arm/mach-omap2/pm34xx.c +++ b/arch/arm/mach-omap2/pm34xx.c | |||
@@ -32,7 +32,7 @@ | |||
32 | 32 | ||
33 | #include <plat/sram.h> | 33 | #include <plat/sram.h> |
34 | #include "clockdomain.h" | 34 | #include "clockdomain.h" |
35 | #include <plat/powerdomain.h> | 35 | #include "powerdomain.h" |
36 | #include <plat/serial.h> | 36 | #include <plat/serial.h> |
37 | #include <plat/sdrc.h> | 37 | #include <plat/sdrc.h> |
38 | #include <plat/prcm.h> | 38 | #include <plat/prcm.h> |
@@ -360,6 +360,7 @@ void omap_sram_idle(void) | |||
360 | int mpu_next_state = PWRDM_POWER_ON; | 360 | int mpu_next_state = PWRDM_POWER_ON; |
361 | int per_next_state = PWRDM_POWER_ON; | 361 | int per_next_state = PWRDM_POWER_ON; |
362 | int core_next_state = PWRDM_POWER_ON; | 362 | int core_next_state = PWRDM_POWER_ON; |
363 | int per_going_off; | ||
363 | int core_prev_state, per_prev_state; | 364 | int core_prev_state, per_prev_state; |
364 | u32 sdrc_pwr = 0; | 365 | u32 sdrc_pwr = 0; |
365 | 366 | ||
@@ -411,9 +412,10 @@ void omap_sram_idle(void) | |||
411 | 412 | ||
412 | /* PER */ | 413 | /* PER */ |
413 | if (per_next_state < PWRDM_POWER_ON) { | 414 | if (per_next_state < PWRDM_POWER_ON) { |
415 | per_going_off = (per_next_state == PWRDM_POWER_OFF) ? 1 : 0; | ||
414 | omap_uart_prepare_idle(2); | 416 | omap_uart_prepare_idle(2); |
415 | omap_uart_prepare_idle(3); | 417 | omap_uart_prepare_idle(3); |
416 | omap2_gpio_prepare_for_idle(per_next_state); | 418 | omap2_gpio_prepare_for_idle(per_going_off); |
417 | if (per_next_state == PWRDM_POWER_OFF) | 419 | if (per_next_state == PWRDM_POWER_OFF) |
418 | omap3_per_save_context(); | 420 | omap3_per_save_context(); |
419 | } | 421 | } |
diff --git a/arch/arm/mach-omap2/pm44xx.c b/arch/arm/mach-omap2/pm44xx.c index 6aff9961e35d..e9f4862c4de4 100644 --- a/arch/arm/mach-omap2/pm44xx.c +++ b/arch/arm/mach-omap2/pm44xx.c | |||
@@ -16,7 +16,7 @@ | |||
16 | #include <linux/err.h> | 16 | #include <linux/err.h> |
17 | #include <linux/slab.h> | 17 | #include <linux/slab.h> |
18 | 18 | ||
19 | #include <plat/powerdomain.h> | 19 | #include "powerdomain.h" |
20 | #include <mach/omap4-common.h> | 20 | #include <mach/omap4-common.h> |
21 | 21 | ||
22 | struct power_state { | 22 | struct power_state { |
diff --git a/arch/arm/mach-omap2/powerdomain-common.c b/arch/arm/mach-omap2/powerdomain-common.c index cb01c7a3689a..171fccd208c7 100644 --- a/arch/arm/mach-omap2/powerdomain-common.c +++ b/arch/arm/mach-omap2/powerdomain-common.c | |||
@@ -20,7 +20,6 @@ | |||
20 | #include "cm-regbits-44xx.h" | 20 | #include "cm-regbits-44xx.h" |
21 | #include "prm-regbits-34xx.h" | 21 | #include "prm-regbits-34xx.h" |
22 | #include "prm-regbits-44xx.h" | 22 | #include "prm-regbits-44xx.h" |
23 | #include "powerdomains.h" | ||
24 | 23 | ||
25 | /* | 24 | /* |
26 | * OMAP3 and OMAP4 specific register bit initialisations | 25 | * OMAP3 and OMAP4 specific register bit initialisations |
diff --git a/arch/arm/mach-omap2/powerdomain.c b/arch/arm/mach-omap2/powerdomain.c index 7eb7ba49d6bf..06ef60eebebd 100644 --- a/arch/arm/mach-omap2/powerdomain.c +++ b/arch/arm/mach-omap2/powerdomain.c | |||
@@ -26,7 +26,7 @@ | |||
26 | #include "prm44xx.h" | 26 | #include "prm44xx.h" |
27 | 27 | ||
28 | #include <plat/cpu.h> | 28 | #include <plat/cpu.h> |
29 | #include <plat/powerdomain.h> | 29 | #include "powerdomain.h" |
30 | #include "clockdomain.h" | 30 | #include "clockdomain.h" |
31 | #include <plat/prcm.h> | 31 | #include <plat/prcm.h> |
32 | 32 | ||
diff --git a/arch/arm/plat-omap/include/plat/powerdomain.h b/arch/arm/mach-omap2/powerdomain.h index a0d3a30de9fd..35b5b4800a43 100644 --- a/arch/arm/plat-omap/include/plat/powerdomain.h +++ b/arch/arm/mach-omap2/powerdomain.h | |||
@@ -1,10 +1,10 @@ | |||
1 | /* | 1 | /* |
2 | * OMAP2/3/4 powerdomain control | 2 | * OMAP2/3/4 powerdomain control |
3 | * | 3 | * |
4 | * Copyright (C) 2007-2008 Texas Instruments, Inc. | 4 | * Copyright (C) 2007-2008, 2010 Texas Instruments, Inc. |
5 | * Copyright (C) 2007-2010 Nokia Corporation | 5 | * Copyright (C) 2007-2010 Nokia Corporation |
6 | * | 6 | * |
7 | * Written by Paul Walmsley | 7 | * Paul Walmsley |
8 | * | 8 | * |
9 | * This program is free software; you can redistribute it and/or modify | 9 | * This program is free software; you can redistribute it and/or modify |
10 | * it under the terms of the GNU General Public License version 2 as | 10 | * it under the terms of the GNU General Public License version 2 as |
@@ -14,13 +14,13 @@ | |||
14 | * opportunity. | 14 | * opportunity. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef ASM_ARM_PLAT_OMAP_INCLUDE_PLAT_POWERDOMAIN | 17 | #ifndef __ARCH_ARM_MACH_OMAP2_POWERDOMAIN_H |
18 | #define ASM_ARM_PLAT_OMAP_INCLUDE_PLAT_POWERDOMAIN | 18 | #define __ARCH_ARM_MACH_OMAP2_POWERDOMAIN_H |
19 | 19 | ||
20 | #include <linux/types.h> | 20 | #include <linux/types.h> |
21 | #include <linux/list.h> | 21 | #include <linux/list.h> |
22 | 22 | ||
23 | #include <asm/atomic.h> | 23 | #include <linux/atomic.h> |
24 | 24 | ||
25 | #include <plat/cpu.h> | 25 | #include <plat/cpu.h> |
26 | 26 | ||
@@ -216,4 +216,17 @@ extern void omap2xxx_powerdomains_init(void); | |||
216 | extern void omap3xxx_powerdomains_init(void); | 216 | extern void omap3xxx_powerdomains_init(void); |
217 | extern void omap44xx_powerdomains_init(void); | 217 | extern void omap44xx_powerdomains_init(void); |
218 | 218 | ||
219 | extern struct pwrdm_ops omap2_pwrdm_operations; | ||
220 | extern struct pwrdm_ops omap3_pwrdm_operations; | ||
221 | extern struct pwrdm_ops omap4_pwrdm_operations; | ||
222 | |||
223 | /* Common Internal functions used across OMAP rev's */ | ||
224 | extern u32 omap2_pwrdm_get_mem_bank_onstate_mask(u8 bank); | ||
225 | extern u32 omap2_pwrdm_get_mem_bank_retst_mask(u8 bank); | ||
226 | extern u32 omap2_pwrdm_get_mem_bank_stst_mask(u8 bank); | ||
227 | |||
228 | extern struct powerdomain wkup_omap2_pwrdm; | ||
229 | extern struct powerdomain gfx_omap2_pwrdm; | ||
230 | |||
231 | |||
219 | #endif | 232 | #endif |
diff --git a/arch/arm/mach-omap2/powerdomain2xxx_3xxx.c b/arch/arm/mach-omap2/powerdomain2xxx_3xxx.c index b5e9e4d18b8c..d5233890370c 100644 --- a/arch/arm/mach-omap2/powerdomain2xxx_3xxx.c +++ b/arch/arm/mach-omap2/powerdomain2xxx_3xxx.c | |||
@@ -18,8 +18,8 @@ | |||
18 | 18 | ||
19 | #include <plat/prcm.h> | 19 | #include <plat/prcm.h> |
20 | 20 | ||
21 | #include "powerdomain.h" | ||
21 | #include "prm-regbits-34xx.h" | 22 | #include "prm-regbits-34xx.h" |
22 | #include "powerdomains.h" | ||
23 | #include "prm.h" | 23 | #include "prm.h" |
24 | #include "prm-regbits-24xx.h" | 24 | #include "prm-regbits-24xx.h" |
25 | #include "prm-regbits-34xx.h" | 25 | #include "prm-regbits-34xx.h" |
diff --git a/arch/arm/mach-omap2/powerdomain44xx.c b/arch/arm/mach-omap2/powerdomain44xx.c index 28bf5e3b000c..a7880af4b3d9 100644 --- a/arch/arm/mach-omap2/powerdomain44xx.c +++ b/arch/arm/mach-omap2/powerdomain44xx.c | |||
@@ -16,13 +16,12 @@ | |||
16 | #include <linux/errno.h> | 16 | #include <linux/errno.h> |
17 | #include <linux/delay.h> | 17 | #include <linux/delay.h> |
18 | 18 | ||
19 | #include <plat/powerdomain.h> | 19 | #include "powerdomain.h" |
20 | #include <plat/prcm.h> | 20 | #include <plat/prcm.h> |
21 | #include "prm2xxx_3xxx.h" | 21 | #include "prm2xxx_3xxx.h" |
22 | #include "prm44xx.h" | 22 | #include "prm44xx.h" |
23 | #include "prminst44xx.h" | 23 | #include "prminst44xx.h" |
24 | #include "prm-regbits-44xx.h" | 24 | #include "prm-regbits-44xx.h" |
25 | #include "powerdomains.h" | ||
26 | 25 | ||
27 | static int omap4_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) | 26 | static int omap4_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) |
28 | { | 27 | { |
diff --git a/arch/arm/mach-omap2/powerdomains.h b/arch/arm/mach-omap2/powerdomains.h deleted file mode 100644 index f83adaf889ee..000000000000 --- a/arch/arm/mach-omap2/powerdomains.h +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | /* | ||
2 | * OMAP2+ powerdomain prototypes | ||
3 | * | ||
4 | * Copyright (C) 2010 Texas Instruments, Inc. | ||
5 | * | ||
6 | * Rajendra Nayak <rnayak@ti.com> | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #ifndef ARCH_ARM_MACH_OMAP2_POWERDOMAINS_H | ||
14 | #define ARCH_ARM_MACH_OMAP2_POWERDOMAINS_H | ||
15 | |||
16 | #include <plat/powerdomain.h> | ||
17 | |||
18 | extern struct pwrdm_ops omap2_pwrdm_operations; | ||
19 | extern struct pwrdm_ops omap3_pwrdm_operations; | ||
20 | extern struct pwrdm_ops omap4_pwrdm_operations; | ||
21 | |||
22 | /* Common Internal functions used across OMAP rev's */ | ||
23 | extern u32 omap2_pwrdm_get_mem_bank_onstate_mask(u8 bank); | ||
24 | extern u32 omap2_pwrdm_get_mem_bank_retst_mask(u8 bank); | ||
25 | extern u32 omap2_pwrdm_get_mem_bank_stst_mask(u8 bank); | ||
26 | |||
27 | extern struct powerdomain wkup_omap2_pwrdm; | ||
28 | extern struct powerdomain gfx_omap2_pwrdm; | ||
29 | |||
30 | #endif | ||
diff --git a/arch/arm/mach-omap2/powerdomains2xxx_3xxx_data.c b/arch/arm/mach-omap2/powerdomains2xxx_3xxx_data.c index 14c6ef7e01e3..5b4dd971320a 100644 --- a/arch/arm/mach-omap2/powerdomains2xxx_3xxx_data.c +++ b/arch/arm/mach-omap2/powerdomains2xxx_3xxx_data.c | |||
@@ -45,13 +45,11 @@ | |||
45 | * address offset is different between the C55 and C64 DSPs. | 45 | * address offset is different between the C55 and C64 DSPs. |
46 | */ | 46 | */ |
47 | 47 | ||
48 | #include <plat/powerdomain.h> | 48 | #include "powerdomain.h" |
49 | 49 | ||
50 | #include "prcm-common.h" | 50 | #include "prcm-common.h" |
51 | #include "prm.h" | 51 | #include "prm.h" |
52 | 52 | ||
53 | #include "powerdomains.h" | ||
54 | |||
55 | /* OMAP2/3-common powerdomains */ | 53 | /* OMAP2/3-common powerdomains */ |
56 | 54 | ||
57 | /* | 55 | /* |
diff --git a/arch/arm/mach-omap2/powerdomains2xxx_3xxx_data.h b/arch/arm/mach-omap2/powerdomains2xxx_3xxx_data.h index 45d684a3bf2b..fa311669d53d 100644 --- a/arch/arm/mach-omap2/powerdomains2xxx_3xxx_data.h +++ b/arch/arm/mach-omap2/powerdomains2xxx_3xxx_data.h | |||
@@ -14,7 +14,7 @@ | |||
14 | #ifndef __ARCH_ARM_MACH_OMAP2_POWERDOMAINS2XXX_3XXX_DATA_H | 14 | #ifndef __ARCH_ARM_MACH_OMAP2_POWERDOMAINS2XXX_3XXX_DATA_H |
15 | #define __ARCH_ARM_MACH_OMAP2_POWERDOMAINS2XXX_3XXX_DATA_H | 15 | #define __ARCH_ARM_MACH_OMAP2_POWERDOMAINS2XXX_3XXX_DATA_H |
16 | 16 | ||
17 | #include <plat/powerdomain.h> | 17 | #include "powerdomain.h" |
18 | 18 | ||
19 | extern struct powerdomain gfx_omap2_pwrdm; | 19 | extern struct powerdomain gfx_omap2_pwrdm; |
20 | extern struct powerdomain wkup_omap2_pwrdm; | 20 | extern struct powerdomain wkup_omap2_pwrdm; |
diff --git a/arch/arm/mach-omap2/powerdomains2xxx_data.c b/arch/arm/mach-omap2/powerdomains2xxx_data.c index e136895e0a37..9b1a33500577 100644 --- a/arch/arm/mach-omap2/powerdomains2xxx_data.c +++ b/arch/arm/mach-omap2/powerdomains2xxx_data.c | |||
@@ -14,9 +14,8 @@ | |||
14 | #include <linux/kernel.h> | 14 | #include <linux/kernel.h> |
15 | #include <linux/init.h> | 15 | #include <linux/init.h> |
16 | 16 | ||
17 | #include <plat/powerdomain.h> | 17 | #include "powerdomain.h" |
18 | #include "powerdomains2xxx_3xxx_data.h" | 18 | #include "powerdomains2xxx_3xxx_data.h" |
19 | #include "powerdomains.h" | ||
20 | 19 | ||
21 | #include "prcm-common.h" | 20 | #include "prcm-common.h" |
22 | #include "prm2xxx_3xxx.h" | 21 | #include "prm2xxx_3xxx.h" |
diff --git a/arch/arm/mach-omap2/powerdomains3xxx_data.c b/arch/arm/mach-omap2/powerdomains3xxx_data.c index 1830c63ae676..e1bec562625b 100644 --- a/arch/arm/mach-omap2/powerdomains3xxx_data.c +++ b/arch/arm/mach-omap2/powerdomains3xxx_data.c | |||
@@ -14,9 +14,8 @@ | |||
14 | #include <linux/kernel.h> | 14 | #include <linux/kernel.h> |
15 | #include <linux/init.h> | 15 | #include <linux/init.h> |
16 | 16 | ||
17 | #include <plat/powerdomain.h> | 17 | #include "powerdomain.h" |
18 | #include "powerdomains2xxx_3xxx_data.h" | 18 | #include "powerdomains2xxx_3xxx_data.h" |
19 | #include "powerdomains.h" | ||
20 | 19 | ||
21 | #include "prcm-common.h" | 20 | #include "prcm-common.h" |
22 | #include "prm2xxx_3xxx.h" | 21 | #include "prm2xxx_3xxx.h" |
diff --git a/arch/arm/mach-omap2/powerdomains44xx_data.c b/arch/arm/mach-omap2/powerdomains44xx_data.c index 823f4770f947..5fdf485a022a 100644 --- a/arch/arm/mach-omap2/powerdomains44xx_data.c +++ b/arch/arm/mach-omap2/powerdomains44xx_data.c | |||
@@ -22,8 +22,7 @@ | |||
22 | #include <linux/kernel.h> | 22 | #include <linux/kernel.h> |
23 | #include <linux/init.h> | 23 | #include <linux/init.h> |
24 | 24 | ||
25 | #include <plat/powerdomain.h> | 25 | #include "powerdomain.h" |
26 | #include "powerdomains.h" | ||
27 | 26 | ||
28 | #include "prcm-common.h" | 27 | #include "prcm-common.h" |
29 | #include "prcm44xx.h" | 28 | #include "prcm44xx.h" |
diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c index 8d493b992e70..1f98e0b94847 100644 --- a/arch/arm/plat-omap/gpio.c +++ b/arch/arm/plat-omap/gpio.c | |||
@@ -29,7 +29,6 @@ | |||
29 | #include <mach/irqs.h> | 29 | #include <mach/irqs.h> |
30 | #include <mach/gpio.h> | 30 | #include <mach/gpio.h> |
31 | #include <asm/mach/irq.h> | 31 | #include <asm/mach/irq.h> |
32 | #include <plat/powerdomain.h> | ||
33 | 32 | ||
34 | /* | 33 | /* |
35 | * OMAP1510 GPIO registers | 34 | * OMAP1510 GPIO registers |
@@ -1864,7 +1863,7 @@ static struct sys_device omap_gpio_device = { | |||
1864 | 1863 | ||
1865 | static int workaround_enabled; | 1864 | static int workaround_enabled; |
1866 | 1865 | ||
1867 | void omap2_gpio_prepare_for_idle(int power_state) | 1866 | void omap2_gpio_prepare_for_idle(int off_mode) |
1868 | { | 1867 | { |
1869 | int i, c = 0; | 1868 | int i, c = 0; |
1870 | int min = 0; | 1869 | int min = 0; |
@@ -1880,7 +1879,7 @@ void omap2_gpio_prepare_for_idle(int power_state) | |||
1880 | for (j = 0; j < hweight_long(bank->dbck_enable_mask); j++) | 1879 | for (j = 0; j < hweight_long(bank->dbck_enable_mask); j++) |
1881 | clk_disable(bank->dbck); | 1880 | clk_disable(bank->dbck); |
1882 | 1881 | ||
1883 | if (power_state > PWRDM_POWER_OFF) | 1882 | if (!off_mode) |
1884 | continue; | 1883 | continue; |
1885 | 1884 | ||
1886 | /* If going to OFF, remove triggering for all | 1885 | /* If going to OFF, remove triggering for all |
diff --git a/arch/arm/plat-omap/include/plat/gpio.h b/arch/arm/plat-omap/include/plat/gpio.h index 41ff2f8943f0..d6f9fa0f62af 100644 --- a/arch/arm/plat-omap/include/plat/gpio.h +++ b/arch/arm/plat-omap/include/plat/gpio.h | |||
@@ -82,7 +82,7 @@ struct omap_gpio_platform_data { | |||
82 | /* TODO: Analyze removing gpio_bank_count usage from driver code */ | 82 | /* TODO: Analyze removing gpio_bank_count usage from driver code */ |
83 | extern int gpio_bank_count; | 83 | extern int gpio_bank_count; |
84 | 84 | ||
85 | extern void omap2_gpio_prepare_for_idle(int power_state); | 85 | extern void omap2_gpio_prepare_for_idle(int off_mode); |
86 | extern void omap2_gpio_resume_after_idle(void); | 86 | extern void omap2_gpio_resume_after_idle(void); |
87 | extern void omap_set_gpio_debounce(int gpio, int enable); | 87 | extern void omap_set_gpio_debounce(int gpio, int enable); |
88 | extern void omap_set_gpio_debounce_time(int gpio, int enable); | 88 | extern void omap_set_gpio_debounce_time(int gpio, int enable); |
diff --git a/arch/arm/plat-omap/include/plat/omap-pm.h b/arch/arm/plat-omap/include/plat/omap-pm.h index 62c3fe918ab2..47d61107ccda 100644 --- a/arch/arm/plat-omap/include/plat/omap-pm.h +++ b/arch/arm/plat-omap/include/plat/omap-pm.h | |||
@@ -19,8 +19,6 @@ | |||
19 | #include <linux/clk.h> | 19 | #include <linux/clk.h> |
20 | #include <linux/opp.h> | 20 | #include <linux/opp.h> |
21 | 21 | ||
22 | #include "powerdomain.h" | ||
23 | |||
24 | /* | 22 | /* |
25 | * agent_id values for use with omap_pm_set_min_bus_tput(): | 23 | * agent_id values for use with omap_pm_set_min_bus_tput(): |
26 | * | 24 | * |
diff --git a/arch/arm/plat-omap/omap-pm-noop.c b/arch/arm/plat-omap/omap-pm-noop.c index ca75abb18068..19cb9f5a9f04 100644 --- a/arch/arm/plat-omap/omap-pm-noop.c +++ b/arch/arm/plat-omap/omap-pm-noop.c | |||
@@ -24,8 +24,6 @@ | |||
24 | /* Interface documentation is in mach/omap-pm.h */ | 24 | /* Interface documentation is in mach/omap-pm.h */ |
25 | #include <plat/omap-pm.h> | 25 | #include <plat/omap-pm.h> |
26 | 26 | ||
27 | #include <plat/powerdomain.h> | ||
28 | |||
29 | /* | 27 | /* |
30 | * Device-driver-originated constraints (via board-*.c files) | 28 | * Device-driver-originated constraints (via board-*.c files) |
31 | */ | 29 | */ |
diff --git a/drivers/staging/tidspbridge/core/_tiomap.h b/drivers/staging/tidspbridge/core/_tiomap.h index a3190e74ff74..1159a500f49d 100644 --- a/drivers/staging/tidspbridge/core/_tiomap.h +++ b/drivers/staging/tidspbridge/core/_tiomap.h | |||
@@ -24,7 +24,7 @@ | |||
24 | * be removed. No driver should call pwrdm_* or clkdm_* functions | 24 | * be removed. No driver should call pwrdm_* or clkdm_* functions |
25 | * directly; they should rely on OMAP core code to do this. | 25 | * directly; they should rely on OMAP core code to do this. |
26 | */ | 26 | */ |
27 | #include <plat/powerdomain.h> | 27 | #include <mach-omap2/powerdomain.h> |
28 | #include <mach-omap2/clockdomain.h> | 28 | #include <mach-omap2/clockdomain.h> |
29 | /* | 29 | /* |
30 | * XXX These mach-omap2/ includes are wrong and should be removed. No | 30 | * XXX These mach-omap2/ includes are wrong and should be removed. No |