blob: 434a6ab0eca517b876c17ee9b2c41a808430bf3b [file] [log] [blame]
Todd Poynor26705ca2005-07-01 11:27:05 +01001/*
2 * PXA27x standby mode
3 *
4 * Author: David Burrage
5 *
6 * 2005 (c) MontaVista Software, Inc. This file is licensed under
7 * the terms of the GNU General Public License version 2. This program
8 * is licensed "as is" without any warranty of any kind, whether express
9 * or implied.
10 */
11
Todd Poynor26705ca2005-07-01 11:27:05 +010012#include <linux/linkage.h>
13#include <asm/assembler.h>
14#include <asm/hardware.h>
15
16#include <asm/arch/pxa-regs.h>
17
18 .text
19
Russell King533462f2008-01-04 22:43:36 +000020#ifdef CONFIG_PXA27x
Todd Poynor26705ca2005-07-01 11:27:05 +010021ENTRY(pxa_cpu_standby)
22 ldr r0, =PSSR
23 mov r1, #(PSSR_PH | PSSR_STS)
Todd Poynor80a18572005-10-28 16:25:01 +010024 mov r2, #PWRMODE_STANDBY
Todd Poynor26705ca2005-07-01 11:27:05 +010025 mov r3, #UNCACHED_PHYS_0 @ Read mem context in.
26 ldr ip, [r3]
27 b 1f
28
29 .align 5
301: mcr p14, 0, r2, c7, c0, 0 @ put the system into Standby
31 str r1, [r0] @ make sure PSSR_PH/STS are clear
32 mov pc, lr
Russell King533462f2008-01-04 22:43:36 +000033
34#endif