Steven Miao | 93f8951 | 2012-05-16 18:26:10 +0800 | [diff] [blame] | 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 | |
Steven Miao | 93f8951 | 2012-05-16 18:26:10 +0800 | [diff] [blame] | 12 | #include <linux/suspend.h> |
| 13 | |
| 14 | struct bfin_cpu_pm_fns { |
| 15 | void (*save)(unsigned long *); |
| 16 | void (*restore)(unsigned long *); |
| 17 | int (*valid)(suspend_state_t state); |
| 18 | void (*enter)(suspend_state_t state); |
| 19 | int (*prepare)(void); |
| 20 | void (*finish)(void); |
| 21 | }; |
| 22 | |
| 23 | extern struct bfin_cpu_pm_fns *bfin_cpu_pm; |
| 24 | |
| 25 | # ifdef CONFIG_BFIN_COREB |
| 26 | void bfin_coreb_start(void); |
| 27 | void bfin_coreb_stop(void); |
| 28 | void bfin_coreb_reset(void); |
| 29 | # endif |
| 30 | |
| 31 | #endif |