diff options
author | Rongjun Ying <rongjun.ying@csr.com> | 2011-09-21 09:46:20 -0400 |
---|---|---|
committer | Barry Song <21cnbao@gmail.com> | 2011-09-21 11:25:59 -0400 |
commit | 2558bd99cb1426a05ac8f1c78dc9c75a83ceb4bb (patch) | |
tree | 865f7e3b85ad937c2a38c9979be814a943f3ebba /arch/arm/mach-prima2/pm.h | |
parent | 9c2a51faab6de454407964987ad0cdb84edf2723 (diff) |
ARM: CSR: PM: add sleep entry for SiRFprimaII
This patch adds suspend-to-mem support for prima2. It will make prima2
enter DEEPSLEEP mode while accepting PM_SUSPEND_MEM command.
Signed-off-by: Rongjun Ying <rongjun.ying@csr.com>
Signed-off-by: Barry Song <baohua.song@csr.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-prima2/pm.h')
-rw-r--r-- | arch/arm/mach-prima2/pm.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/arm/mach-prima2/pm.h b/arch/arm/mach-prima2/pm.h new file mode 100644 index 000000000000..bae6d77e01ab --- /dev/null +++ b/arch/arm/mach-prima2/pm.h | |||
@@ -0,0 +1,29 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-prima2/pm.h | ||
3 | * | ||
4 | * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company. | ||
5 | * | ||
6 | * Licensed under GPLv2 or later. | ||
7 | */ | ||
8 | |||
9 | #ifndef _MACH_PRIMA2_PM_H_ | ||
10 | #define _MACH_PRIMA2_PM_H_ | ||
11 | |||
12 | #define SIRFSOC_PWR_SLEEPFORCE 0x01 | ||
13 | |||
14 | #define SIRFSOC_SLEEP_MODE_MASK 0x3 | ||
15 | #define SIRFSOC_DEEP_SLEEP_MODE 0x1 | ||
16 | |||
17 | #define SIRFSOC_PWRC_PDN_CTRL 0x0 | ||
18 | #define SIRFSOC_PWRC_PON_OFF 0x4 | ||
19 | #define SIRFSOC_PWRC_TRIGGER_EN 0x8 | ||
20 | #define SIRFSOC_PWRC_PIN_STATUS 0x14 | ||
21 | #define SIRFSOC_PWRC_SCRATCH_PAD1 0x18 | ||
22 | #define SIRFSOC_PWRC_SCRATCH_PAD2 0x1C | ||
23 | |||
24 | #ifndef __ASSEMBLY__ | ||
25 | extern int sirfsoc_finish_suspend(unsigned long); | ||
26 | #endif | ||
27 | |||
28 | #endif | ||
29 | |||