diff options
Diffstat (limited to 'include/asm-blackfin/gpio.h')
-rw-r--r-- | include/asm-blackfin/gpio.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/asm-blackfin/gpio.h b/include/asm-blackfin/gpio.h index d0426c108262..27ff532a806c 100644 --- a/include/asm-blackfin/gpio.h +++ b/include/asm-blackfin/gpio.h | |||
@@ -376,16 +376,19 @@ struct gpio_port_t { | |||
376 | #endif | 376 | #endif |
377 | 377 | ||
378 | #ifdef CONFIG_PM | 378 | #ifdef CONFIG_PM |
379 | unsigned int bfin_pm_setup(void); | ||
380 | void bfin_pm_restore(void); | ||
381 | |||
382 | #ifndef CONFIG_BF54x | ||
379 | #define PM_WAKE_RISING 0x1 | 383 | #define PM_WAKE_RISING 0x1 |
380 | #define PM_WAKE_FALLING 0x2 | 384 | #define PM_WAKE_FALLING 0x2 |
381 | #define PM_WAKE_HIGH 0x4 | 385 | #define PM_WAKE_HIGH 0x4 |
382 | #define PM_WAKE_LOW 0x8 | 386 | #define PM_WAKE_LOW 0x8 |
383 | #define PM_WAKE_BOTH_EDGES (PM_WAKE_RISING | PM_WAKE_FALLING) | 387 | #define PM_WAKE_BOTH_EDGES (PM_WAKE_RISING | PM_WAKE_FALLING) |
388 | #define PM_WAKE_IGNORE 0xF0 | ||
384 | 389 | ||
385 | int gpio_pm_wakeup_request(unsigned gpio, unsigned char type); | 390 | int gpio_pm_wakeup_request(unsigned gpio, unsigned char type); |
386 | void gpio_pm_wakeup_free(unsigned gpio); | 391 | void gpio_pm_wakeup_free(unsigned gpio); |
387 | unsigned int gpio_pm_setup(void); | ||
388 | void gpio_pm_restore(void); | ||
389 | 392 | ||
390 | struct gpio_port_s { | 393 | struct gpio_port_s { |
391 | unsigned short data; | 394 | unsigned short data; |
@@ -409,6 +412,7 @@ struct gpio_port_s { | |||
409 | unsigned short fer; | 412 | unsigned short fer; |
410 | unsigned short reserved; | 413 | unsigned short reserved; |
411 | }; | 414 | }; |
415 | #endif /*CONFIG_BF54x*/ | ||
412 | #endif /*CONFIG_PM*/ | 416 | #endif /*CONFIG_PM*/ |
413 | 417 | ||
414 | /*********************************************************** | 418 | /*********************************************************** |