pxa25x.c (a9503d2185bbc28e498c435a07f24986c48b5cbe) pxa25x.c (2c74a0cefa463a7a483b07ba4d2ea8e4ec7b996c)
1/*
2 * linux/arch/arm/mach-pxa/pxa25x.c
3 *
4 * Author: Nicolas Pitre
5 * Created: Jun 15, 2001
6 * Copyright: MontaVista Software Inc.
7 *
8 * Code specific to PXA21x/25x/26x variants.

--- 11 unchanged lines hidden (view full) ---

20#include <linux/kernel.h>
21#include <linux/init.h>
22#include <linux/platform_device.h>
23#include <linux/suspend.h>
24#include <linux/syscore_ops.h>
25#include <linux/irq.h>
26
27#include <asm/mach/map.h>
1/*
2 * linux/arch/arm/mach-pxa/pxa25x.c
3 *
4 * Author: Nicolas Pitre
5 * Created: Jun 15, 2001
6 * Copyright: MontaVista Software Inc.
7 *
8 * Code specific to PXA21x/25x/26x variants.

--- 11 unchanged lines hidden (view full) ---

20#include <linux/kernel.h>
21#include <linux/init.h>
22#include <linux/platform_device.h>
23#include <linux/suspend.h>
24#include <linux/syscore_ops.h>
25#include <linux/irq.h>
26
27#include <asm/mach/map.h>
28#include <asm/suspend.h>
28#include <mach/hardware.h>
29#include <mach/irqs.h>
30#include <mach/gpio.h>
31#include <mach/pxa25x.h>
32#include <mach/reset.h>
33#include <mach/pm.h>
34#include <mach/dma.h>
35#include <mach/smemc.h>

--- 203 unchanged lines hidden (view full) ---

239
240static void pxa25x_cpu_pm_enter(suspend_state_t state)
241{
242 /* Clear reset status */
243 RCSR = RCSR_HWR | RCSR_WDR | RCSR_SMR | RCSR_GPR;
244
245 switch (state) {
246 case PM_SUSPEND_MEM:
29#include <mach/hardware.h>
30#include <mach/irqs.h>
31#include <mach/gpio.h>
32#include <mach/pxa25x.h>
33#include <mach/reset.h>
34#include <mach/pm.h>
35#include <mach/dma.h>
36#include <mach/smemc.h>

--- 203 unchanged lines hidden (view full) ---

240
241static void pxa25x_cpu_pm_enter(suspend_state_t state)
242{
243 /* Clear reset status */
244 RCSR = RCSR_HWR | RCSR_WDR | RCSR_SMR | RCSR_GPR;
245
246 switch (state) {
247 case PM_SUSPEND_MEM:
247 cpu_suspend(0, PHYS_OFFSET - PAGE_OFFSET, PWRMODE_SLEEP,
248 pxa25x_finish_suspend);
248 cpu_suspend(PWRMODE_SLEEP, pxa25x_finish_suspend);
249 break;
250 }
251}
252
253static int pxa25x_cpu_pm_prepare(void)
254{
255 /* set resume return address */
256 PSPR = virt_to_phys(cpu_resume);

--- 131 unchanged lines hidden ---
249 break;
250 }
251}
252
253static int pxa25x_cpu_pm_prepare(void)
254{
255 /* set resume return address */
256 PSPR = virt_to_phys(cpu_resume);

--- 131 unchanged lines hidden ---