Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c0d30ecf authored by Christian Lamparter's avatar Christian Lamparter Committed by Linus Walleij
Browse files

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: default avatarChristian Lamparter <chunkeey@googlemail.com>
Acked-by: default avatarAlexandre Courbot <acourbot@nvidia.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent e698613a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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