pm.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) pm.c (64fc2a947a9873700929ec0ef02b4654a04e0476)
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 *

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

68 SAVE(PSDR);
69
70 SAVE(Ser1SDCR0);
71
72 /* Clear previous reset status */
73 RCSR = RCSR_HWR | RCSR_SWR | RCSR_WDR | RCSR_SMR;
74
75 /* set resume return address */
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 *

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

68 SAVE(PSDR);
69
70 SAVE(Ser1SDCR0);
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);
76 PSPR = __pa_symbol(cpu_resume);
77
78 /* go zzz */
79 cpu_suspend(0, sa1100_finish_suspend);
80
81 /*
82 * Ensure not to come back here if it wasn't intended
83 */
84 RCSR = RCSR_SMR;

--- 42 unchanged lines hidden ---
77
78 /* go zzz */
79 cpu_suspend(0, sa1100_finish_suspend);
80
81 /*
82 * Ensure not to come back here if it wasn't intended
83 */
84 RCSR = RCSR_SMR;

--- 42 unchanged lines hidden ---