1 /* SPDX-License-Identifier: GPL-2.0+ */
3 #ifndef _GPIO_DA8XX_DEFS_H_
4 #define _GPIO_DA8XX_DEFS_H_
10 unsigned int clr_data;
12 unsigned int set_rising;
13 unsigned int clr_rising;
14 unsigned int set_falling;
15 unsigned int clr_falling;
19 struct davinci_gpio_bank {
22 unsigned int irq_mask;
23 unsigned long *in_use;
24 struct davinci_gpio *base;
27 #define GPIO_NAME_SIZE 20
28 #define MAX_NUM_GPIOS 144
29 #define GPIO_BIT(gp) ((gp) & 0x1F)
33 /* Information about a GPIO bank */
34 struct davinci_gpio_platdata {
36 ulong base; /* address of registers in physical memory */
37 const char *port_name;