diff options
| author | Steven Miao <realmz6@gmail.com> | 2012-06-14 06:04:01 -0400 |
|---|---|---|
| committer | Bob Liu <lliubbo@gmail.com> | 2012-07-24 01:39:51 -0400 |
| commit | d49cdf84096392359a4d532733ab5a165d24bb0d (patch) | |
| tree | 6fcf9be93ab88c1424184cd9e76f594a4e1cf9ec /arch/blackfin/include | |
| parent | 688da5e87aeb5094450f941d5a755ce04e25f4a1 (diff) | |
bf60x: pm: add pint suspend and resume support
save and restore pint sec CTL
save and restore pint registers
add pint suspend and resume when suspend to mem
Signed-off-by: Steven Miao <realmz6@gmail.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
Diffstat (limited to 'arch/blackfin/include')
| -rw-r--r-- | arch/blackfin/include/asm/gpio.h | 2 | ||||
| -rw-r--r-- | arch/blackfin/include/asm/irq.h | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/gpio.h b/arch/blackfin/include/asm/gpio.h index 3d84d96f7c2..98d0133346b 100644 --- a/arch/blackfin/include/asm/gpio.h +++ b/arch/blackfin/include/asm/gpio.h | |||
| @@ -141,6 +141,8 @@ static inline void bfin_pm_standby_restore(void) | |||
| 141 | 141 | ||
| 142 | void bfin_gpio_pm_hibernate_restore(void); | 142 | void bfin_gpio_pm_hibernate_restore(void); |
| 143 | void bfin_gpio_pm_hibernate_suspend(void); | 143 | void bfin_gpio_pm_hibernate_suspend(void); |
| 144 | void bfin_pint_suspend(void); | ||
| 145 | void bfin_pint_resume(void); | ||
| 144 | 146 | ||
| 145 | # if !BFIN_GPIO_PINT | 147 | # if !BFIN_GPIO_PINT |
| 146 | int gpio_pm_wakeup_ctrl(unsigned gpio, unsigned ctrl); | 148 | int gpio_pm_wakeup_ctrl(unsigned gpio, unsigned ctrl); |
diff --git a/arch/blackfin/include/asm/irq.h b/arch/blackfin/include/asm/irq.h index 89de539ed01..4ae1144a457 100644 --- a/arch/blackfin/include/asm/irq.h +++ b/arch/blackfin/include/asm/irq.h | |||
| @@ -20,6 +20,16 @@ | |||
| 20 | /* SYS_IRQS and NR_IRQS are defined in <mach-bf5xx/irq.h> */ | 20 | /* SYS_IRQS and NR_IRQS are defined in <mach-bf5xx/irq.h> */ |
| 21 | #include <mach/irq.h> | 21 | #include <mach/irq.h> |
| 22 | 22 | ||
| 23 | /* | ||
| 24 | * pm save bfin pint registers | ||
| 25 | */ | ||
| 26 | struct bfin_pm_pint_save { | ||
| 27 | u32 mask_set; | ||
| 28 | u32 assign; | ||
| 29 | u32 edge_set; | ||
| 30 | u32 invert_set; | ||
| 31 | }; | ||
| 32 | |||
| 23 | #if ANOMALY_05000244 && defined(CONFIG_BFIN_ICACHE) | 33 | #if ANOMALY_05000244 && defined(CONFIG_BFIN_ICACHE) |
| 24 | # define NOP_PAD_ANOMALY_05000244 "nop; nop;" | 34 | # define NOP_PAD_ANOMALY_05000244 "nop; nop;" |
| 25 | #else | 35 | #else |
