pm.c (34c79de6b2ea5bc5734d970851fb966b49d55a17) | pm.c (2c74a0cefa463a7a483b07ba4d2ea8e4ec7b996c) |
---|---|
1/* 2 * SA1100 Power Management Routines 3 * 4 * Copyright (c) 2001 Cliff Brake <cbrake@accelent.com> 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License. 8 * --- 15 unchanged lines hidden (view full) --- 24 */ 25#include <linux/init.h> 26#include <linux/suspend.h> 27#include <linux/errno.h> 28#include <linux/time.h> 29 30#include <mach/hardware.h> 31#include <asm/memory.h> | 1/* 2 * SA1100 Power Management Routines 3 * 4 * Copyright (c) 2001 Cliff Brake <cbrake@accelent.com> 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License. 8 * --- 15 unchanged lines hidden (view full) --- 24 */ 25#include <linux/init.h> 26#include <linux/suspend.h> 27#include <linux/errno.h> 28#include <linux/time.h> 29 30#include <mach/hardware.h> 31#include <asm/memory.h> |
32#include <asm/suspend.h> |
|
32#include <asm/system.h> 33#include <asm/mach/time.h> 34 35extern void sa1100_finish_suspend(unsigned long); 36 37#define SAVE(x) sleep_save[SLEEP_SAVE_##x] = x 38#define RESTORE(x) x = sleep_save[SLEEP_SAVE_##x] 39 --- 30 unchanged lines hidden (view full) --- 70 71 /* Clear previous reset status */ 72 RCSR = RCSR_HWR | RCSR_SWR | RCSR_WDR | RCSR_SMR; 73 74 /* set resume return address */ 75 PSPR = virt_to_phys(cpu_resume); 76 77 /* go zzz */ | 33#include <asm/system.h> 34#include <asm/mach/time.h> 35 36extern void sa1100_finish_suspend(unsigned long); 37 38#define SAVE(x) sleep_save[SLEEP_SAVE_##x] = x 39#define RESTORE(x) x = sleep_save[SLEEP_SAVE_##x] 40 --- 30 unchanged lines hidden (view full) --- 71 72 /* Clear previous reset status */ 73 RCSR = RCSR_HWR | RCSR_SWR | RCSR_WDR | RCSR_SMR; 74 75 /* set resume return address */ 76 PSPR = virt_to_phys(cpu_resume); 77 78 /* go zzz */ |
78 cpu_suspend(0, PHYS_OFFSET - PAGE_OFFSET, 0, sa1100_finish_suspend); | 79 cpu_suspend(0, sa1100_finish_suspend); |
79 80 /* 81 * Ensure not to come back here if it wasn't intended 82 */ 83 PSPR = 0; 84 85 /* 86 * Ensure interrupt sources are disabled; we will re-init --- 40 unchanged lines hidden --- | 80 81 /* 82 * Ensure not to come back here if it wasn't intended 83 */ 84 PSPR = 0; 85 86 /* 87 * Ensure interrupt sources are disabled; we will re-init --- 40 unchanged lines hidden --- |