2019-05-29 21:18:02 +07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2014-09-17 23:18:39 +07:00
|
|
|
/*
|
|
|
|
* Copyright(c) 2014 Intel Corporation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GPIO_DW_APB_H
|
|
|
|
#define GPIO_DW_APB_H
|
|
|
|
|
|
|
|
struct dwapb_port_property {
|
2016-04-28 16:32:02 +07:00
|
|
|
struct fwnode_handle *fwnode;
|
2014-09-17 23:18:39 +07:00
|
|
|
unsigned int idx;
|
|
|
|
unsigned int ngpio;
|
|
|
|
unsigned int gpio_base;
|
2018-05-25 22:11:34 +07:00
|
|
|
int irq[32];
|
2018-04-26 23:19:47 +07:00
|
|
|
bool has_irq;
|
2014-09-17 23:18:39 +07:00
|
|
|
bool irq_shared;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct dwapb_platform_data {
|
|
|
|
struct dwapb_port_property *properties;
|
|
|
|
unsigned int nports;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|