projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d06be8b
)
gpio: madera: Add support for Cirrus Logic CS47L92
author
Charles Keepax
<ckeepax@opensource.cirrus.com>
Mon, 22 Jul 2019 09:07:48 +0000
(10:07 +0100)
committer
Linus Walleij
<linus.walleij@linaro.org>
Mon, 5 Aug 2019 09:45:24 +0000
(11:45 +0200)
As the gpio is common to all madera codecs all that is needed
is to setup the correct number of GPIO pins for the CS47L92.
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link:
https://lore.kernel.org/r/20190722090748.20807-4-ckeepax@opensource.cirrus.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-madera.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-madera.c
b/drivers/gpio/gpio-madera.c
index c403899ff4500b16f24ef6a07d286f0bdcf4e4e7..7086f8b5388fd712dc7c8198a7f1fe83fc280a4b 100644
(file)
--- a/
drivers/gpio/gpio-madera.c
+++ b/
drivers/gpio/gpio-madera.c
@@
-150,6
+150,11
@@
static int madera_gpio_probe(struct platform_device *pdev)
case CS47L91:
madera_gpio->gpio_chip.ngpio = CS47L90_NUM_GPIOS;
break;
+ case CS42L92:
+ case CS47L92:
+ case CS47L93:
+ madera_gpio->gpio_chip.ngpio = CS47L92_NUM_GPIOS;
+ break;
default:
dev_err(&pdev->dev, "Unknown chip variant %d\n", madera->type);
return -EINVAL;