mfd: Add GPIO pin configuration support for WM8350
[linux-2.6.git] / include / linux / mfd / wm8350 / gpio.h
index 928aa6e91e362e70c38cb95df55dcf7bc7b2ca9a..c6cd2ca8854a68fa711bc3a28b7e4ac8806adf80 100644 (file)
 #define WM8350_GP1_LVL                          0x0002
 #define WM8350_GP0_LVL                          0x0001
 
+struct wm8350;
+
+int wm8350_gpio_config(struct wm8350 *wm8350, int gpio, int dir, int func,
+                      int pol, int pull, int invert, int debounce);
+
+/*
+ * GPIO Interrupts
+ */
+#define WM8350_IRQ_GPIO(x)                      (50 + x)
+
 #endif