Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1400987
| From | Christian Lamparter <chunkeey@googlemail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v10 2/2] gpio: mmio: add MyBook Live GPIO support |
| Date | 2016-05-13 23:10 +0200 |
| Message-ID | <rysvq-2VC-29@gated-at.bofh.it> (permalink) |
| References | <rysvo-2VC-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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>
---
drivers/gpio/gpio-mmio.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/gpio/gpio-mmio.c b/drivers/gpio/gpio-mmio.c
index af583be..6ec144b 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
--
2.8.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v10 0/2] gpio: add DT support for memory-mapped GPIOs Christian Lamparter <chunkeey@googlemail.com> - 2016-05-13 23:10 +0200 [PATCH v10 2/2] gpio: mmio: add MyBook Live GPIO support Christian Lamparter <chunkeey@googlemail.com> - 2016-05-13 23:10 +0200 Re: [PATCH v10 0/2] gpio: add DT support for memory-mapped GPIOs Linus Walleij <linus.walleij@linaro.org> - 2016-05-24 12:50 +0200
csiph-web