Message ID | 9e2091228d1d653072d22d858eae2a7e08530d8b.1463172434.git.chunkeey@googlemail.com |
---|---|
State | New |
Headers | show |
On Fri, May 13, 2016 at 11:07 PM, Christian Lamparter <chunkeey@googlemail.com> wrote: > 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> Patch applied with Alex' ACK. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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
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(+)