diff options
| author | Weike Chen <alvin.chen@intel.com> | 2014-09-17 12:18:39 -0400 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2014-09-23 11:51:37 -0400 |
| commit | 3d2613c4289ff22de3aa24d2d0a29e33937f023a (patch) | |
| tree | 30e95e5c3f8db19249743f1de2e493dc3fd58f27 /include/linux/platform_data | |
| parent | e1db1706c86ee455f25eeaeadeda827e1e02310f (diff) | |
GPIO: gpio-dwapb: Enable platform driver binding to MFD driver
The Synopsys DesignWare APB GPIO driver only supports open firmware devices.
But, like Intel Quark X1000 SOC, which has a single PCI function exporting
a GPIO and an I2C controller, it is a Multifunction device. This patch is
to enable the current Synopsys DesignWare APB GPIO driver to support the
Multifunction device which exports the designware GPIO controller.
Reviewed-by: Hock Leong Kweh <hock.leong.kweh@intel.com>
Signed-off-by: Weike Chen <alvin.chen@intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/gpio-dwapb.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/linux/platform_data/gpio-dwapb.h b/include/linux/platform_data/gpio-dwapb.h new file mode 100644 index 000000000000..28702c849af1 --- /dev/null +++ b/include/linux/platform_data/gpio-dwapb.h | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | /* | ||
| 2 | * Copyright(c) 2014 Intel Corporation. | ||
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify it | ||
| 5 | * under the terms and conditions of the GNU General Public License, | ||
| 6 | * version 2, as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
| 9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 11 | * more details. | ||
| 12 | */ | ||
| 13 | |||
| 14 | #ifndef GPIO_DW_APB_H | ||
| 15 | #define GPIO_DW_APB_H | ||
| 16 | |||
| 17 | struct dwapb_port_property { | ||
| 18 | struct device_node *node; | ||
| 19 | const char *name; | ||
| 20 | unsigned int idx; | ||
| 21 | unsigned int ngpio; | ||
| 22 | unsigned int gpio_base; | ||
| 23 | unsigned int irq; | ||
| 24 | bool irq_shared; | ||
| 25 | }; | ||
| 26 | |||
| 27 | struct dwapb_platform_data { | ||
| 28 | struct dwapb_port_property *properties; | ||
| 29 | unsigned int nports; | ||
| 30 | }; | ||
| 31 | |||
| 32 | #endif | ||
