diff options
author | Charles Keepax <ckeepax@opensource.cirrus.com> | 2019-07-22 10:10:15 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2019-08-05 11:48:03 +0200 |
commit | a1db8da7c28131ceb3200732e429eb9d30ce5929 (patch) | |
tree | 7cc8825937db5724e5449fabd08ae7c15fc9fa6c /drivers/pinctrl/cirrus/pinctrl-madera-core.c | |
parent | b0bca3e4ee934a3f06e6ddb4337c679f54575009 (diff) | |
download | lwn-a1db8da7c28131ceb3200732e429eb9d30ce5929.tar.gz lwn-a1db8da7c28131ceb3200732e429eb9d30ce5929.zip |
pinctrl: madera: Add configuration for Cirrus Logic CS47L92
This adds the pinctrl configuration for the CS47L92 codec to
the madera pinctrl driver.
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20190722091015.20884-3-ckeepax@opensource.cirrus.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/cirrus/pinctrl-madera-core.c')
-rw-r--r-- | drivers/pinctrl/cirrus/pinctrl-madera-core.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/pinctrl/cirrus/pinctrl-madera-core.c b/drivers/pinctrl/cirrus/pinctrl-madera-core.c index 64281ad5c1b9..e2f72dcce4c9 100644 --- a/drivers/pinctrl/cirrus/pinctrl-madera-core.c +++ b/drivers/pinctrl/cirrus/pinctrl-madera-core.c @@ -396,6 +396,16 @@ static const struct { .group_names = madera_pin_single_group_names, .func = 0x157 }, + { + .name = "aux-pdm-clk", + .group_names = madera_pin_single_group_names, + .func = 0x280 + }, + { + .name = "aux-pdm-dat", + .group_names = madera_pin_single_group_names, + .func = 0x281 + }, }; static u16 madera_pin_make_drv_str(struct madera_pin_private *priv, @@ -1022,6 +1032,12 @@ static int madera_pin_probe(struct platform_device *pdev) if (IS_ENABLED(CONFIG_PINCTRL_CS47L90)) priv->chip = &cs47l90_pin_chip; break; + case CS42L92: + case CS47L92: + case CS47L93: + if (IS_ENABLED(CONFIG_PINCTRL_CS47L92)) + priv->chip = &cs47l92_pin_chip; + break; default: break; } |