aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2010-01-07 11:10:08 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2010-03-07 16:16:59 -0500
commit38f6ce45f0bca04ac653c57cacd375c469995321 (patch)
treeb49c7f0a021b3b4b9cb274a4e74879b8f59fb081 /include/linux/mfd
parent59f25070df0325067d7916b467ad15725657fedc (diff)
gpiolib: Add support for WM8350 GPIO controller
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/wm8350/core.h2
-rw-r--r--include/linux/mfd/wm8350/gpio.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mfd/wm8350/core.h b/include/linux/mfd/wm8350/core.h
index 04217a71f173..fae08aa65413 100644
--- a/include/linux/mfd/wm8350/core.h
+++ b/include/linux/mfd/wm8350/core.h
@@ -645,11 +645,13 @@ struct wm8350 {
645 * used by the platform to configure GPIO functions and similar. 645 * used by the platform to configure GPIO functions and similar.
646 * @irq_high: Set if WM8350 IRQ is active high. 646 * @irq_high: Set if WM8350 IRQ is active high.
647 * @irq_base: Base IRQ for genirq (not currently used). 647 * @irq_base: Base IRQ for genirq (not currently used).
648 * @gpio_base: Base for gpiolib.
648 */ 649 */
649struct wm8350_platform_data { 650struct wm8350_platform_data {
650 int (*init)(struct wm8350 *wm8350); 651 int (*init)(struct wm8350 *wm8350);
651 int irq_high; 652 int irq_high;
652 int irq_base; 653 int irq_base;
654 int gpio_base;
653}; 655};
654 656
655 657
diff --git a/include/linux/mfd/wm8350/gpio.h b/include/linux/mfd/wm8350/gpio.h
index 71af3d6ebe9d..d657bcd6d955 100644
--- a/include/linux/mfd/wm8350/gpio.h
+++ b/include/linux/mfd/wm8350/gpio.h
@@ -29,6 +29,7 @@
29#define WM8350_GPIO_FUNCTION_SELECT_2 0x8D 29#define WM8350_GPIO_FUNCTION_SELECT_2 0x8D
30#define WM8350_GPIO_FUNCTION_SELECT_3 0x8E 30#define WM8350_GPIO_FUNCTION_SELECT_3 0x8E
31#define WM8350_GPIO_FUNCTION_SELECT_4 0x8F 31#define WM8350_GPIO_FUNCTION_SELECT_4 0x8F
32#define WM8350_GPIO_LEVEL 0xE6
32 33
33/* 34/*
34 * GPIO Functions 35 * GPIO Functions