diff options
| author | Richard Fitzgerald <[email protected]> | 2019-07-22 10:07:47 +0100 |
|---|---|---|
| committer | Linus Walleij <[email protected]> | 2019-08-05 11:44:15 +0200 |
| commit | d06be8bc290aa255b9fd8602e60fb9f487aa0f48 (patch) | |
| tree | 2eec534cdcbc457fce59e1c3f2ec9497386c978e | |
| parent | fe2afa0d7b5ce05f8d2c4508e4041f3a216a5539 (diff) | |
gpio: madera: Add support for Cirrus Logic CS47L15
As the gpio is common to all madera codecs all that is needed
is to setup the correct number of GPIO pins for the CS47L15.
Signed-off-by: Richard Fitzgerald <[email protected]>
Signed-off-by: Charles Keepax <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
| -rw-r--r-- | drivers/gpio/gpio-madera.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-madera.c b/drivers/gpio/gpio-madera.c index fa3441df0a5d..c403899ff450 100644 --- a/drivers/gpio/gpio-madera.c +++ b/drivers/gpio/gpio-madera.c @@ -136,6 +136,9 @@ static int madera_gpio_probe(struct platform_device *pdev) madera_gpio->gpio_chip.parent = pdev->dev.parent; switch (madera->type) { + case CS47L15: + madera_gpio->gpio_chip.ngpio = CS47L15_NUM_GPIOS; + break; case CS47L35: madera_gpio->gpio_chip.ngpio = CS47L35_NUM_GPIOS; break; |