summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/tlv320aic32x4.h
diff options
context:
space:
mode:
authorDan Murphy <dmurphy@ti.com>2017-07-12 13:37:00 -0500
committerMark Brown <broonie@kernel.org>2017-07-17 16:22:28 +0100
commitb9045b9c6b79d2ea5b888a0f9e9aa156d09ba8a9 (patch)
treea865e0d7fa0f89f5b38b5b8c02b1aed0c31bba0d /sound/soc/codecs/tlv320aic32x4.h
parentfde0543f1129967dfa73f1fa3477c7fe12052da5 (diff)
downloadtalos-obmc-linux-b9045b9c6b79d2ea5b888a0f9e9aa156d09ba8a9.tar.gz
talos-obmc-linux-b9045b9c6b79d2ea5b888a0f9e9aa156d09ba8a9.zip
ASoC: tlv320aic32x4: Add gpio configuration to the codec
Add the ability to configure the MFP1->MFP5 registers as GPIOs. In addition adding ALSA controls to get and set the GPIO state. Per the data sheet each MFP can be configured as a GPIO input only, output only or either an input or output. Signed-off-by: Dan Murphy <dmurphy@ti.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/tlv320aic32x4.h')
-rw-r--r--sound/soc/codecs/tlv320aic32x4.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/tlv320aic32x4.h b/sound/soc/codecs/tlv320aic32x4.h
index a197dd51addc..da7cec482bcb 100644
--- a/sound/soc/codecs/tlv320aic32x4.h
+++ b/sound/soc/codecs/tlv320aic32x4.h
@@ -44,8 +44,11 @@ int aic32x4_remove(struct device *dev);
#define AIC32X4_IFACE4 31
#define AIC32X4_IFACE5 32
#define AIC32X4_IFACE6 33
+#define AIC32X4_GPIOCTL 52
#define AIC32X4_DOUTCTL 53
#define AIC32X4_DINCTL 54
+#define AIC32X4_MISOCTL 55
+#define AIC32X4_SCLKCTL 56
#define AIC32X4_DACSPB 60
#define AIC32X4_ADCSPB 61
#define AIC32X4_DACSETUP 63
OpenPOWER on IntegriCloud