collie: prepare for gpiolib use
[safe/jmp/linux-2.6] / arch / arm / mach-sa1100 / include / mach / collie.h
index 9efb569..8c8fe46 100644 (file)
                                COLLIE_SCP_LB_VOL_CHG )
 #define COLLIE_SCOOP_IO_OUT    ( COLLIE_SCP_MUTE_L | COLLIE_SCP_MUTE_R )
 
-/* GPIOs for which the generic definition doesn't say much */
+/* GPIOs for gpiolib  */
 
-#define COLLIE_GPIO_ON_KEY             GPIO_GPIO (0)
-#define COLLIE_GPIO_AC_IN              GPIO_GPIO (1)
-#define COLLIE_GPIO_SDIO_INT           GPIO_GPIO (11)
-#define COLLIE_GPIO_CF_IRQ             GPIO_GPIO (14)
-#define COLLIE_GPIO_nREMOCON_INT       GPIO_GPIO (15)
-#define COLLIE_GPIO_UCB1x00_RESET      GPIO_GPIO (16)
-#define COLLIE_GPIO_nMIC_ON            GPIO_GPIO (17)
-#define COLLIE_GPIO_nREMOCON_ON                GPIO_GPIO (18)
-#define COLLIE_GPIO_CO                 GPIO_GPIO (20)
-#define COLLIE_GPIO_MCP_CLK            GPIO_GPIO (21)
-#define COLLIE_GPIO_CF_CD              GPIO_GPIO (22)
-#define COLLIE_GPIO_UCB1x00_IRQ                GPIO_GPIO (23)
-#define COLLIE_GPIO_WAKEUP             GPIO_GPIO (24)
-#define COLLIE_GPIO_GA_INT             GPIO_GPIO (25)
-#define COLLIE_GPIO_MAIN_BAT_LOW       GPIO_GPIO (26)
+#define COLLIE_GPIO_ON_KEY             (0)
+#define COLLIE_GPIO_AC_IN              (1)
+#define COLLIE_GPIO_SDIO_INT           (11)
+#define COLLIE_GPIO_CF_IRQ             (14)
+#define COLLIE_GPIO_nREMOCON_INT       (15)
+#define COLLIE_GPIO_UCB1x00_RESET      (16)
+#define COLLIE_GPIO_nMIC_ON            (17)
+#define COLLIE_GPIO_nREMOCON_ON                (18)
+#define COLLIE_GPIO_CO                 (20)
+#define COLLIE_GPIO_MCP_CLK            (21)
+#define COLLIE_GPIO_CF_CD              (22)
+#define COLLIE_GPIO_UCB1x00_IRQ                (23)
+#define COLLIE_GPIO_WAKEUP             (24)
+#define COLLIE_GPIO_GA_INT             (25)
+#define COLLIE_GPIO_MAIN_BAT_LOW       (26)
 
+/* GPIO definitions for direct register access */
+
+#define _COLLIE_GPIO_ON_KEY            GPIO_GPIO(0)
+#define _COLLIE_GPIO_AC_IN             GPIO_GPIO(1)
+#define _COLLIE_GPIO_nREMOCON_INT      GPIO_GPIO(15)
+#define _COLLIE_GPIO_UCB1x00_RESET     GPIO_GPIO(16)
+#define _COLLIE_GPIO_nMIC_ON           GPIO_GPIO(17)
+#define _COLLIE_GPIO_nREMOCON_ON       GPIO_GPIO(18)
+#define _COLLIE_GPIO_CO                        GPIO_GPIO(20)
+#define _COLLIE_GPIO_WAKEUP            GPIO_GPIO(24)
 /* Interrupts */
 
 #define COLLIE_IRQ_GPIO_ON_KEY         IRQ_GPIO0