diff options
author | Steven Miao <realmz6@gmail.com> | 2012-05-16 06:26:10 -0400 |
---|---|---|
committer | Bob Liu <lliubbo@gmail.com> | 2012-05-21 02:54:24 -0400 |
commit | 93f89519fd31c21e5d606faf4091f5905db38412 (patch) | |
tree | 642d8605e14281e8f69a54e2130a7898754289ba /arch/blackfin/include/asm/pm.h | |
parent | b2cfc653a513f347114c85ed8e75456ea0159c18 (diff) |
blackfin: bf60x: add power management support
Add bf60x cpu pm callbacks and change blackfin pm framework to support bf60x.
Signed-off-by: Steven Miao <realmz6@gmail.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
Diffstat (limited to 'arch/blackfin/include/asm/pm.h')
-rw-r--r-- | arch/blackfin/include/asm/pm.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/pm.h b/arch/blackfin/include/asm/pm.h new file mode 100644 index 000000000000..da63b46e0c68 --- /dev/null +++ b/arch/blackfin/include/asm/pm.h | |||
@@ -0,0 +1,32 @@ | |||
1 | /* | ||
2 | * Blackfin bf609 power management | ||
3 | * | ||
4 | * Copyright 2011 Analog Devices Inc. | ||
5 | * | ||
6 | * Licensed under the GPL-2 | ||
7 | */ | ||
8 | |||
9 | #ifndef __PM_H__ | ||
10 | #define __PM_H__ | ||
11 | |||
12 | #include <mach/pm.h> | ||
13 | #include <linux/suspend.h> | ||
14 | |||
15 | struct bfin_cpu_pm_fns { | ||
16 | void (*save)(unsigned long *); | ||
17 | void (*restore)(unsigned long *); | ||
18 | int (*valid)(suspend_state_t state); | ||
19 | void (*enter)(suspend_state_t state); | ||
20 | int (*prepare)(void); | ||
21 | void (*finish)(void); | ||
22 | }; | ||
23 | |||
24 | extern struct bfin_cpu_pm_fns *bfin_cpu_pm; | ||
25 | |||
26 | # ifdef CONFIG_BFIN_COREB | ||
27 | void bfin_coreb_start(void); | ||
28 | void bfin_coreb_stop(void); | ||
29 | void bfin_coreb_reset(void); | ||
30 | # endif | ||
31 | |||
32 | #endif | ||