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 __MACH_BF609_PM_H__ |
| 10 | #define __MACH_BF609_PM_H__ |
| 11 | |
| 12 | #include <linux/suspend.h> |
Steven Miao | c6a26ce | 2014-07-16 14:23:08 +0800 | [diff] [blame] | 13 | #include <linux/platform_device.h> |
Steven Miao | 93f8951 | 2012-05-16 18:26:10 +0800 | [diff] [blame] | 14 | |
Sonic Zhang | c7e48e1 | 2012-07-23 11:35:30 +0800 | [diff] [blame] | 15 | extern int bfin609_pm_enter(suspend_state_t state); |
| 16 | extern int bf609_pm_prepare(void); |
| 17 | extern void bf609_pm_finish(void); |
Steven Miao | 93f8951 | 2012-05-16 18:26:10 +0800 | [diff] [blame] | 18 | |
| 19 | void bf609_hibernate(void); |
| 20 | void bfin_sec_raise_irq(unsigned int sid); |
| 21 | void coreb_enable(void); |
Steven Miao | 923680c | 2012-06-07 14:17:12 +0800 | [diff] [blame] | 22 | |
Steven Miao | c6a26ce | 2014-07-16 14:23:08 +0800 | [diff] [blame] | 23 | int bf609_nor_flash_init(struct platform_device *pdev); |
| 24 | void bf609_nor_flash_exit(struct platform_device *pdev); |
Steven Miao | 93f8951 | 2012-05-16 18:26:10 +0800 | [diff] [blame] | 25 | #endif |