diff options
author | Camel Guo <camelg@axis.com> | 2020-09-18 14:40:25 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-09-18 15:09:02 +0300 |
commit | d5214321498a43558d9ffcce4153775c2c296bad (patch) | |
tree | 357d52e1ac81af92d48f626cc0128abc1670be80 /sound/soc/codecs/tlv320adcx140.h | |
parent | 15b3d324c8980022071710b5096b705eb6b74fca (diff) | |
download | linux-d5214321498a43558d9ffcce4153775c2c296bad.tar.xz |
ASoC: tlv320adcx140: Add support for configuring GPIO pin
Add support to configure the GPIO pin to the specific configuration.
The GPIO pin can be configured as GPO, IRQ, SDOUT2, PDMCLK, MICBASE_EN,
GPI, MCLK, SDIN, PDMDIN1, PDMDIN2, PDMDIN3 or PDMDIN4 and the output
drive can be configured with various configuration.
Signed-off-by: Camel Guo <camelg@axis.com>
Link: https://lore.kernel.org/r/20200918114025.18205-2-camel.guo@axis.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/tlv320adcx140.h')
-rw-r--r-- | sound/soc/codecs/tlv320adcx140.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/codecs/tlv320adcx140.h b/sound/soc/codecs/tlv320adcx140.h index 107bd7927d9c..d7d4e3a88b5c 100644 --- a/sound/soc/codecs/tlv320adcx140.h +++ b/sound/soc/codecs/tlv320adcx140.h @@ -148,4 +148,9 @@ #define ADCX140_TX_FILL BIT(0) +#define ADCX140_NUM_GPIO_CFGS 2 +#define ADCX140_GPIO_SHIFT 4 +#define ADCX140_GPIO_CFG_MAX 15 +#define ADCX140_GPIO_DRV_MAX 5 + #endif /* _TLV320ADCX140_ */ |