Weike Chen | 3d2613c | 2014-09-17 09:18:39 -0700 | [diff] [blame] | 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 { |
Jiang Qiu | 4ba8cfa | 2016-04-28 17:32:02 +0800 | [diff] [blame] | 18 | struct fwnode_handle *fwnode; |
Weike Chen | 3d2613c | 2014-09-17 09:18:39 -0700 | [diff] [blame] | 19 | unsigned int idx; |
| 20 | unsigned int ngpio; |
| 21 | unsigned int gpio_base; |
| 22 | unsigned int irq; |
| 23 | bool irq_shared; |
| 24 | }; |
| 25 | |
| 26 | struct dwapb_platform_data { |
| 27 | struct dwapb_port_property *properties; |
| 28 | unsigned int nports; |
| 29 | }; |
| 30 | |
| 31 | #endif |