diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-14 16:42:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-14 16:42:43 -0400 |
commit | 2cf4d4514d5b43c1f3b64bd0ec8b9853bde8f1dc (patch) | |
tree | e35a625496acc6ac852846d40b8851186b9d1ac4 /arch/arm/mach-omap2/pm.c | |
parent | 44b7532b8b464f606053562400719c9c21276037 (diff) | |
parent | ce53895a5d24e0ee19fb92f56c17323fb4c9ab27 (diff) |
Merge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm
* 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm: (417 commits)
MAINTAINERS: EB110ATX is not ebsa110
MAINTAINERS: update Eric Miao's email address and status
fb: add support of LCD display controller on pxa168/910 (base layer)
[ARM] 5552/1: ep93xx get_uart_rate(): use EP93XX_SYSCON_PWRCNT and EP93XX_SYSCON_PWRCN
[ARM] pxa/sharpsl_pm: zaurus needs generic pxa suspend/resume routines
[ARM] 5544/1: Trust PrimeCell resource sizes
[ARM] pxa/sharpsl_pm: cleanup of gpio-related code.
[ARM] pxa/sharpsl_pm: drop set_irq_type calls
[ARM] pxa/sharpsl_pm: merge pxa-specific code into generic one
[ARM] pxa/sharpsl_pm: merge the two sharpsl_pm.c since it's now pxa specific
[ARM] sa1100: remove unused collie_pm.c
[ARM] pxa: fix the conflicting non-static declarations of global_gpios[]
[ARM] 5550/1: Add default configure file for w90p910 platform
[ARM] 5549/1: Add clock api for w90p910 platform.
[ARM] 5548/1: Add gpio api for w90p910 platform
[ARM] 5551/1: Add multi-function pin api for w90p910 platform.
[ARM] Make ARM_VIC_NR depend on ARM_VIC
[ARM] 5546/1: ARM PL022 SSP/SPI driver v3
ARM: OMAP4: SMP: Update defconfig for OMAP4430
ARM: OMAP4: SMP: Enable SMP support for OMAP4430
...
Diffstat (limited to 'arch/arm/mach-omap2/pm.c')
-rw-r--r-- | arch/arm/mach-omap2/pm.c | 111 |
1 files changed, 0 insertions, 111 deletions
diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c deleted file mode 100644 index ea8ceaed09cb..000000000000 --- a/arch/arm/mach-omap2/pm.c +++ /dev/null | |||
@@ -1,111 +0,0 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-omap2/pm.c | ||
3 | * | ||
4 | * OMAP2 Power Management Routines | ||
5 | * | ||
6 | * Copyright (C) 2006 Nokia Corporation | ||
7 | * Tony Lindgren <tony@atomide.com> | ||
8 | * | ||
9 | * Copyright (C) 2005 Texas Instruments, Inc. | ||
10 | * Richard Woodruff <r-woodruff2@ti.com> | ||
11 | * | ||
12 | * Based on pm.c for omap1 | ||
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 | |||
19 | #include <linux/suspend.h> | ||
20 | #include <linux/sched.h> | ||
21 | #include <linux/proc_fs.h> | ||
22 | #include <linux/interrupt.h> | ||
23 | #include <linux/sysfs.h> | ||
24 | #include <linux/module.h> | ||
25 | #include <linux/delay.h> | ||
26 | #include <linux/clk.h> | ||
27 | #include <linux/io.h> | ||
28 | |||
29 | #include <asm/irq.h> | ||
30 | #include <asm/atomic.h> | ||
31 | #include <asm/mach/time.h> | ||
32 | #include <asm/mach/irq.h> | ||
33 | |||
34 | #include <mach/irqs.h> | ||
35 | #include <mach/clock.h> | ||
36 | #include <mach/sram.h> | ||
37 | #include <mach/pm.h> | ||
38 | |||
39 | static struct clk *vclk; | ||
40 | static void (*omap2_sram_idle)(void); | ||
41 | static void (*omap2_sram_suspend)(int dllctrl, int cpu_rev); | ||
42 | static void (*saved_idle)(void); | ||
43 | |||
44 | extern void __init pmdomain_init(void); | ||
45 | extern void pmdomain_set_autoidle(void); | ||
46 | |||
47 | static unsigned int omap24xx_sleep_save[OMAP24XX_SLEEP_SAVE_SIZE]; | ||
48 | |||
49 | void omap2_pm_idle(void) | ||
50 | { | ||
51 | local_irq_disable(); | ||
52 | local_fiq_disable(); | ||
53 | if (need_resched()) { | ||
54 | local_fiq_enable(); | ||
55 | local_irq_enable(); | ||
56 | return; | ||
57 | } | ||
58 | |||
59 | omap2_sram_idle(); | ||
60 | local_fiq_enable(); | ||
61 | local_irq_enable(); | ||
62 | } | ||
63 | |||
64 | static int omap2_pm_prepare(void) | ||
65 | { | ||
66 | /* We cannot sleep in idle until we have resumed */ | ||
67 | saved_idle = pm_idle; | ||
68 | pm_idle = NULL; | ||
69 | return 0; | ||
70 | } | ||
71 | |||
72 | static int omap2_pm_suspend(void) | ||
73 | { | ||
74 | return 0; | ||
75 | } | ||
76 | |||
77 | static int omap2_pm_enter(suspend_state_t state) | ||
78 | { | ||
79 | int ret = 0; | ||
80 | |||
81 | switch (state) | ||
82 | { | ||
83 | case PM_SUSPEND_STANDBY: | ||
84 | case PM_SUSPEND_MEM: | ||
85 | ret = omap2_pm_suspend(); | ||
86 | break; | ||
87 | default: | ||
88 | ret = -EINVAL; | ||
89 | } | ||
90 | |||
91 | return ret; | ||
92 | } | ||
93 | |||
94 | static void omap2_pm_finish(void) | ||
95 | { | ||
96 | pm_idle = saved_idle; | ||
97 | } | ||
98 | |||
99 | static struct platform_suspend_ops omap_pm_ops = { | ||
100 | .prepare = omap2_pm_prepare, | ||
101 | .enter = omap2_pm_enter, | ||
102 | .finish = omap2_pm_finish, | ||
103 | .valid = suspend_valid_only_mem, | ||
104 | }; | ||
105 | |||
106 | static int __init omap2_pm_init(void) | ||
107 | { | ||
108 | return 0; | ||
109 | } | ||
110 | |||
111 | __initcall(omap2_pm_init); | ||