diff options
author | Christian Lamparter <chunkeey@googlemail.com> | 2016-05-14 00:07:12 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-06-08 12:16:50 +0300 |
commit | c0d30ecfe2f3e2254234d055982536fac18c7f1c (patch) | |
tree | ac880e665114a329d4b887915ee6e47af9439432 /drivers/gpio | |
parent | e698613ada5896a42d2f352296fd999d7dcaf4f3 (diff) | |
download | linux-c0d30ecfe2f3e2254234d055982536fac18c7f1c.tar.xz |
gpio: mmio: add MyBook Live GPIO support
This patch adds support for the Western Digital's
MyBook Live memory-mapped GPIO controllers.
The GPIOs will be supported by the generic driver
for memory-mapped GPIO controllers.
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-mmio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-mmio.c b/drivers/gpio/gpio-mmio.c index af583bee86d0..6ec144baeb11 100644 --- a/drivers/gpio/gpio-mmio.c +++ b/drivers/gpio/gpio-mmio.c @@ -573,6 +573,7 @@ static void __iomem *bgpio_map(struct platform_device *pdev, #ifdef CONFIG_OF static const struct of_device_id bgpio_of_match[] = { + { .compatible = "wd,mbl-gpio" }, { } }; MODULE_DEVICE_TABLE(of, bgpio_of_match); @@ -592,6 +593,9 @@ static struct bgpio_pdata *bgpio_parse_dt(struct platform_device *pdev, pdata->base = -1; + if (of_property_read_bool(pdev->dev.of_node, "no-output")) + *flags |= BGPIOF_NO_OUTPUT; + return pdata; } #else |