Merge branch 'for-upstream' of git://openrisc.net/jonas/linux
[pandora-kernel.git] / arch / blackfin / include / asm / gpio.h
index 1ef8417..5a25856 100644 (file)
 
 #include <mach/gpio.h>
 
-#define GPIO_0 0
-#define GPIO_1 1
-#define GPIO_2 2
-#define GPIO_3 3
-#define GPIO_4 4
-#define GPIO_5 5
-#define GPIO_6 6
-#define GPIO_7 7
-#define GPIO_8 8
-#define GPIO_9 9
-#define GPIO_10        10
-#define GPIO_11        11
-#define GPIO_12        12
-#define GPIO_13        13
-#define GPIO_14        14
-#define GPIO_15        15
-#define GPIO_16        16
-#define GPIO_17        17
-#define GPIO_18        18
-#define GPIO_19        19
-#define GPIO_20        20
-#define GPIO_21        21
-#define GPIO_22        22
-#define GPIO_23        23
-#define GPIO_24        24
-#define GPIO_25        25
-#define GPIO_26        26
-#define GPIO_27        27
-#define GPIO_28        28
-#define GPIO_29        29
-#define GPIO_30        30
-#define GPIO_31        31
-#define GPIO_32        32
-#define GPIO_33        33
-#define GPIO_34        34
-#define GPIO_35        35
-#define GPIO_36        36
-#define GPIO_37        37
-#define GPIO_38        38
-#define GPIO_39        39
-#define GPIO_40        40
-#define GPIO_41        41
-#define GPIO_42        42
-#define GPIO_43        43
-#define GPIO_44        44
-#define GPIO_45        45
-#define GPIO_46        46
-#define GPIO_47        47
-
 #define PERIPHERAL_USAGE 1
 #define GPIO_USAGE 0
 
+#ifndef BFIN_GPIO_PINT
+# define BFIN_GPIO_PINT 0
+#endif
+
 #ifndef __ASSEMBLY__
 
 #include <linux/compiler.h>
@@ -89,7 +44,7 @@
 * MODIFICATION HISTORY :
 **************************************************************/
 
-#ifndef CONFIG_BF54x
+#if !BFIN_GPIO_PINT
 void set_gpio_dir(unsigned, unsigned short);
 void set_gpio_inen(unsigned, unsigned short);
 void set_gpio_polar(unsigned, unsigned short);
@@ -164,6 +119,10 @@ struct gpio_port_t {
 #ifdef BFIN_SPECIAL_GPIO_BANKS
 void bfin_special_gpio_free(unsigned gpio);
 int bfin_special_gpio_request(unsigned gpio, const char *label);
+# ifdef CONFIG_PM
+void bfin_special_gpio_pm_hibernate_restore(void);
+void bfin_special_gpio_pm_hibernate_suspend(void);
+# endif
 #endif
 
 #ifdef CONFIG_PM
@@ -182,7 +141,7 @@ static inline void bfin_pm_standby_restore(void)
 void bfin_gpio_pm_hibernate_restore(void);
 void bfin_gpio_pm_hibernate_suspend(void);
 
-#ifndef CONFIG_BF54x
+# if !BFIN_GPIO_PINT
 int gpio_pm_wakeup_ctrl(unsigned gpio, unsigned ctrl);
 
 struct gpio_port_s {
@@ -199,8 +158,9 @@ struct gpio_port_s {
        unsigned short reserved;
        unsigned short mux;
 };
-#endif /*CONFIG_BF54x*/
+# endif
 #endif /*CONFIG_PM*/
+
 /***********************************************************
 *
 * FUNCTIONS: Blackfin GPIO Driver