mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Acked-by: Alexandre Courbot <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
e698613ada
commit
c0d30ecfe2
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue