Commit | Line | Data |
---|---|---|
2025cf9e | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
3d2613c4 WC |
2 | /* |
3 | * Copyright(c) 2014 Intel Corporation. | |
3d2613c4 WC |
4 | */ |
5 | ||
6 | #ifndef GPIO_DW_APB_H | |
7 | #define GPIO_DW_APB_H | |
8 | ||
f9f890ba SS |
9 | #define DWAPB_MAX_GPIOS 32 |
10 | ||
3d2613c4 | 11 | struct dwapb_port_property { |
4ba8cfa7 | 12 | struct fwnode_handle *fwnode; |
3d2613c4 WC |
13 | unsigned int idx; |
14 | unsigned int ngpio; | |
15 | unsigned int gpio_base; | |
f9f890ba | 16 | int irq[DWAPB_MAX_GPIOS]; |
3d2613c4 WC |
17 | bool irq_shared; |
18 | }; | |
19 | ||
20 | struct dwapb_platform_data { | |
21 | struct dwapb_port_property *properties; | |
22 | unsigned int nports; | |
23 | }; | |
24 | ||
25 | #endif |