Merge existing fixes from regulator/for-5.10
[linux-2.6-microblaze.git] / include / linux / platform_data / gpio-dwapb.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright(c) 2014 Intel Corporation.
4  */
5
6 #ifndef GPIO_DW_APB_H
7 #define GPIO_DW_APB_H
8
9 #define DWAPB_MAX_GPIOS         32
10
11 struct dwapb_port_property {
12         struct fwnode_handle *fwnode;
13         unsigned int    idx;
14         unsigned int    ngpio;
15         unsigned int    gpio_base;
16         int             irq[DWAPB_MAX_GPIOS];
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