Skip to contentSkip to conversation

ASoC: Add support for WM8962 GPIO outputs

PATCH In review Mark Brown 2 participants 2 messages Oct 1, 2010 – Oct 2, 2010

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 ASoC: Add support for WM8962 GPIO outputs

The WM8962 features five GPIOs, add support for controlling their output state via gpiolib.

---
 include/sound/wm8962.h    |    1 +
 sound/soc/codecs/wm8962.c |  119 +++++++++++++++++++++++++++++++++++++++++++++
 sound/soc/codecs/wm8962.h |    1 +
 3 files changed, 121 insertions(+), 0 deletions(-)
include/sound/wm8962.h +1 -0
index 9722aac..2b5306c 100644
@@ -15,6 +15,7 @@
 #define WM8962_GPIO_SET 0x10000
 
 struct wm8962_pdata {
+	int gpio_base;
 	u32 gpio_init[WM8962_MAX_GPIO];
 
 	/* Setup for microphone detection, raw value to be written to
sound/soc/codecs/wm8962.c +119 -0

149 lines not on this page · raw message

sound/soc/codecs/wm8962.h +1 -0
index 6145399..fce1199 100644
@@ -181,6 +181,7 @@
 #define WM8962_EQ39                             0x175
 #define WM8962_EQ40                             0x176
 #define WM8962_EQ41                             0x177
+#define WM8962_GPIO_BASE			0x200
 #define WM8962_GPIO_2                           0x201
 #define WM8962_GPIO_3                           0x202
 #define WM8962_GPIO_5                           0x204
Signature · 1 line
1.7.1