diff options
Diffstat (limited to 'arch/arm/mach-omap2/pm24xx.c')
-rw-r--r-- | arch/arm/mach-omap2/pm24xx.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/arch/arm/mach-omap2/pm24xx.c b/arch/arm/mach-omap2/pm24xx.c index ef8595c80296..b8822f8b2891 100644 --- a/arch/arm/mach-omap2/pm24xx.c +++ b/arch/arm/mach-omap2/pm24xx.c | |||
@@ -30,7 +30,6 @@ | |||
30 | #include <linux/irq.h> | 30 | #include <linux/irq.h> |
31 | #include <linux/time.h> | 31 | #include <linux/time.h> |
32 | #include <linux/gpio.h> | 32 | #include <linux/gpio.h> |
33 | #include <linux/console.h> | ||
34 | 33 | ||
35 | #include <asm/mach/time.h> | 34 | #include <asm/mach/time.h> |
36 | #include <asm/mach/irq.h> | 35 | #include <asm/mach/irq.h> |
@@ -127,27 +126,11 @@ static void omap2_enter_full_retention(void) | |||
127 | if (omap_irq_pending()) | 126 | if (omap_irq_pending()) |
128 | goto no_sleep; | 127 | goto no_sleep; |
129 | 128 | ||
130 | /* Block console output in case it is on one of the OMAP UARTs */ | ||
131 | if (!is_suspending()) | ||
132 | if (!console_trylock()) | ||
133 | goto no_sleep; | ||
134 | |||
135 | omap_uart_prepare_idle(0); | ||
136 | omap_uart_prepare_idle(1); | ||
137 | omap_uart_prepare_idle(2); | ||
138 | |||
139 | /* Jump to SRAM suspend code */ | 129 | /* Jump to SRAM suspend code */ |
140 | omap2_sram_suspend(sdrc_read_reg(SDRC_DLLA_CTRL), | 130 | omap2_sram_suspend(sdrc_read_reg(SDRC_DLLA_CTRL), |
141 | OMAP_SDRC_REGADDR(SDRC_DLLA_CTRL), | 131 | OMAP_SDRC_REGADDR(SDRC_DLLA_CTRL), |
142 | OMAP_SDRC_REGADDR(SDRC_POWER)); | 132 | OMAP_SDRC_REGADDR(SDRC_POWER)); |
143 | 133 | ||
144 | omap_uart_resume_idle(2); | ||
145 | omap_uart_resume_idle(1); | ||
146 | omap_uart_resume_idle(0); | ||
147 | |||
148 | if (!is_suspending()) | ||
149 | console_unlock(); | ||
150 | |||
151 | no_sleep: | 134 | no_sleep: |
152 | omap2_gpio_resume_after_idle(); | 135 | omap2_gpio_resume_after_idle(); |
153 | 136 | ||
@@ -239,8 +222,6 @@ static int omap2_can_sleep(void) | |||
239 | { | 222 | { |
240 | if (omap2_fclks_active()) | 223 | if (omap2_fclks_active()) |
241 | return 0; | 224 | return 0; |
242 | if (!omap_uart_can_sleep()) | ||
243 | return 0; | ||
244 | if (osc_ck->usecount > 1) | 225 | if (osc_ck->usecount > 1) |
245 | return 0; | 226 | return 0; |
246 | if (omap_dma_running()) | 227 | if (omap_dma_running()) |
@@ -291,7 +272,6 @@ static int omap2_pm_suspend(void) | |||
291 | mir1 = omap_readl(0x480fe0a4); | 272 | mir1 = omap_readl(0x480fe0a4); |
292 | omap_writel(1 << 5, 0x480fe0ac); | 273 | omap_writel(1 << 5, 0x480fe0ac); |
293 | 274 | ||
294 | omap_uart_prepare_suspend(); | ||
295 | omap2_enter_full_retention(); | 275 | omap2_enter_full_retention(); |
296 | 276 | ||
297 | omap_writel(mir1, 0x480fe0a4); | 277 | omap_writel(mir1, 0x480fe0a4); |