Commit 7d07d15a authored by Richard Fitzgerald's avatar Richard Fitzgerald Committed by Lee Jones

gpio: arizona: Support Cirrus Logic CS47L24 and WM1831

The CS47L24 and WM1831 codecs only have two GPIO lines, but are
otherwise similar to the WM8280.
Signed-off-by: default avatarRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent a7b956fd
...@@ -122,6 +122,10 @@ static int arizona_gpio_probe(struct platform_device *pdev) ...@@ -122,6 +122,10 @@ static int arizona_gpio_probe(struct platform_device *pdev)
case WM1814: case WM1814:
arizona_gpio->gpio_chip.ngpio = 5; arizona_gpio->gpio_chip.ngpio = 5;
break; break;
case WM1831:
case CS47L24:
arizona_gpio->gpio_chip.ngpio = 2;
break;
default: default:
dev_err(&pdev->dev, "Unknown chip variant %d\n", dev_err(&pdev->dev, "Unknown chip variant %d\n",
arizona->type); arizona->type);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment