Skip to content

Commit

Permalink
gpio: mmio: add MyBook Live GPIO support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christian Lamparter authored and Linus Walleij committed Jun 8, 2016
1 parent e698613 commit c0d30ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gpio/gpio-mmio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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
Expand Down

0 comments on commit c0d30ec

Please sign in to comment.