diff options
author | Steven Miao <realmz6@gmail.com> | 2012-05-16 18:26:10 +0800 |
---|---|---|
committer | Bob Liu <lliubbo@gmail.com> | 2012-05-21 14:54:24 +0800 |
commit | 93f89519fd31c21e5d606faf4091f5905db38412 (patch) | |
tree | 642d8605e14281e8f69a54e2130a7898754289ba /arch/blackfin/include/asm/pm.h | |
parent | b2cfc653a513f347114c85ed8e75456ea0159c18 (diff) | |
download | op-kernel-dev-93f89519fd31c21e5d606faf4091f5905db38412.zip op-kernel-dev-93f89519fd31c21e5d606faf4091f5905db38412.tar.gz |
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 0000000..da63b46 --- /dev/null +++ b/arch/blackfin/include/asm/pm.h @@ -0,0 +1,32 @@ +/* + * Blackfin bf609 power management + * + * Copyright 2011 Analog Devices Inc. + * + * Licensed under the GPL-2 + */ + +#ifndef __PM_H__ +#define __PM_H__ + +#include <mach/pm.h> +#include <linux/suspend.h> + +struct bfin_cpu_pm_fns { + void (*save)(unsigned long *); + void (*restore)(unsigned long *); + int (*valid)(suspend_state_t state); + void (*enter)(suspend_state_t state); + int (*prepare)(void); + void (*finish)(void); +}; + +extern struct bfin_cpu_pm_fns *bfin_cpu_pm; + +# ifdef CONFIG_BFIN_COREB +void bfin_coreb_start(void); +void bfin_coreb_stop(void); +void bfin_coreb_reset(void); +# endif + +#endif |