diff options
Diffstat (limited to 'arch/blackfin/include/asm/gpio.h')
-rw-r--r-- | arch/blackfin/include/asm/gpio.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/arch/blackfin/include/asm/gpio.h b/arch/blackfin/include/asm/gpio.h index 91bd2d7b9d55..01b19d0cf509 100644 --- a/arch/blackfin/include/asm/gpio.h +++ b/arch/blackfin/include/asm/gpio.h | |||
@@ -167,23 +167,23 @@ int bfin_special_gpio_request(unsigned gpio, const char *label); | |||
167 | #endif | 167 | #endif |
168 | 168 | ||
169 | #ifdef CONFIG_PM | 169 | #ifdef CONFIG_PM |
170 | int bfin_pm_standby_ctrl(unsigned ctrl); | ||
170 | 171 | ||
171 | unsigned int bfin_pm_standby_setup(void); | 172 | static inline int bfin_pm_standby_setup(void) |
172 | void bfin_pm_standby_restore(void); | 173 | { |
174 | return bfin_pm_standby_ctrl(1); | ||
175 | } | ||
176 | |||
177 | static inline void bfin_pm_standby_restore(void) | ||
178 | { | ||
179 | bfin_pm_standby_ctrl(0); | ||
180 | } | ||
173 | 181 | ||
174 | void bfin_gpio_pm_hibernate_restore(void); | 182 | void bfin_gpio_pm_hibernate_restore(void); |
175 | void bfin_gpio_pm_hibernate_suspend(void); | 183 | void bfin_gpio_pm_hibernate_suspend(void); |
176 | 184 | ||
177 | #ifndef CONFIG_BF54x | 185 | #ifndef CONFIG_BF54x |
178 | #define PM_WAKE_RISING 0x1 | 186 | int gpio_pm_wakeup_ctrl(unsigned gpio, unsigned ctrl); |
179 | #define PM_WAKE_FALLING 0x2 | ||
180 | #define PM_WAKE_HIGH 0x4 | ||
181 | #define PM_WAKE_LOW 0x8 | ||
182 | #define PM_WAKE_BOTH_EDGES (PM_WAKE_RISING | PM_WAKE_FALLING) | ||
183 | #define PM_WAKE_IGNORE 0xF0 | ||
184 | |||
185 | int gpio_pm_wakeup_request(unsigned gpio, unsigned char type); | ||
186 | void gpio_pm_wakeup_free(unsigned gpio); | ||
187 | 187 | ||
188 | struct gpio_port_s { | 188 | struct gpio_port_s { |
189 | unsigned short data; | 189 | unsigned short data; |