1 /* SPDX-License-Identifier: GPL-2.0 */ 1 2 /* Include file for the EP93XX GPIO controller 3 4 #ifndef __GPIO_EP93XX_H 5 #define __GPIO_EP93XX_H 6 7 #include "ep93xx-regs.h" 8 9 #define EP93XX_GPIO_PHYS_BASE EP93XX 10 #define EP93XX_GPIO_BASE EP93XX 11 #define EP93XX_GPIO_REG(x) (EP93X 12 #define EP93XX_GPIO_F_INT_STATUS EP93XX 13 #define EP93XX_GPIO_A_INT_STATUS EP93XX 14 #define EP93XX_GPIO_B_INT_STATUS EP93XX 15 #define EP93XX_GPIO_EEDRIVE EP93XX 16 17 /* GPIO port A. */ 18 #define EP93XX_GPIO_LINE_A(x) ((x) + 19 #define EP93XX_GPIO_LINE_EGPIO0 EP93XX 20 #define EP93XX_GPIO_LINE_EGPIO1 EP93XX 21 #define EP93XX_GPIO_LINE_EGPIO2 EP93XX 22 #define EP93XX_GPIO_LINE_EGPIO3 EP93XX 23 #define EP93XX_GPIO_LINE_EGPIO4 EP93XX 24 #define EP93XX_GPIO_LINE_EGPIO5 EP93XX 25 #define EP93XX_GPIO_LINE_EGPIO6 EP93XX 26 #define EP93XX_GPIO_LINE_EGPIO7 EP93XX 27 28 /* GPIO port B. */ 29 #define EP93XX_GPIO_LINE_B(x) ((x) + 30 #define EP93XX_GPIO_LINE_EGPIO8 EP93XX 31 #define EP93XX_GPIO_LINE_EGPIO9 EP93XX 32 #define EP93XX_GPIO_LINE_EGPIO10 EP93XX 33 #define EP93XX_GPIO_LINE_EGPIO11 EP93XX 34 #define EP93XX_GPIO_LINE_EGPIO12 EP93XX 35 #define EP93XX_GPIO_LINE_EGPIO13 EP93XX 36 #define EP93XX_GPIO_LINE_EGPIO14 EP93XX 37 #define EP93XX_GPIO_LINE_EGPIO15 EP93XX 38 39 /* GPIO port C. */ 40 #define EP93XX_GPIO_LINE_C(x) ((x) + 41 #define EP93XX_GPIO_LINE_ROW0 EP93XX 42 #define EP93XX_GPIO_LINE_ROW1 EP93XX 43 #define EP93XX_GPIO_LINE_ROW2 EP93XX 44 #define EP93XX_GPIO_LINE_ROW3 EP93XX 45 #define EP93XX_GPIO_LINE_ROW4 EP93XX 46 #define EP93XX_GPIO_LINE_ROW5 EP93XX 47 #define EP93XX_GPIO_LINE_ROW6 EP93XX 48 #define EP93XX_GPIO_LINE_ROW7 EP93XX 49 50 /* GPIO port D. */ 51 #define EP93XX_GPIO_LINE_D(x) ((x) + 52 #define EP93XX_GPIO_LINE_COL0 EP93XX 53 #define EP93XX_GPIO_LINE_COL1 EP93XX 54 #define EP93XX_GPIO_LINE_COL2 EP93XX 55 #define EP93XX_GPIO_LINE_COL3 EP93XX 56 #define EP93XX_GPIO_LINE_COL4 EP93XX 57 #define EP93XX_GPIO_LINE_COL5 EP93XX 58 #define EP93XX_GPIO_LINE_COL6 EP93XX 59 #define EP93XX_GPIO_LINE_COL7 EP93XX 60 61 /* GPIO port E. */ 62 #define EP93XX_GPIO_LINE_E(x) ((x) + 63 #define EP93XX_GPIO_LINE_GRLED EP93XX 64 #define EP93XX_GPIO_LINE_RDLED EP93XX 65 #define EP93XX_GPIO_LINE_DIORn EP93XX 66 #define EP93XX_GPIO_LINE_IDECS1n EP93XX 67 #define EP93XX_GPIO_LINE_IDECS2n EP93XX 68 #define EP93XX_GPIO_LINE_IDEDA0 EP93XX 69 #define EP93XX_GPIO_LINE_IDEDA1 EP93XX 70 #define EP93XX_GPIO_LINE_IDEDA2 EP93XX 71 72 /* GPIO port F. */ 73 #define EP93XX_GPIO_LINE_F(x) ((x) + 74 #define EP93XX_GPIO_LINE_WP EP93XX 75 #define EP93XX_GPIO_LINE_MCCD1 EP93XX 76 #define EP93XX_GPIO_LINE_MCCD2 EP93XX 77 #define EP93XX_GPIO_LINE_MCBVD1 EP93XX 78 #define EP93XX_GPIO_LINE_MCBVD2 EP93XX 79 #define EP93XX_GPIO_LINE_VS1 EP93XX 80 #define EP93XX_GPIO_LINE_READY EP93XX 81 #define EP93XX_GPIO_LINE_VS2 EP93XX 82 83 /* GPIO port G. */ 84 #define EP93XX_GPIO_LINE_G(x) ((x) + 85 #define EP93XX_GPIO_LINE_EECLK EP93XX 86 #define EP93XX_GPIO_LINE_EEDAT EP93XX 87 #define EP93XX_GPIO_LINE_SLA0 EP93XX 88 #define EP93XX_GPIO_LINE_SLA1 EP93XX 89 #define EP93XX_GPIO_LINE_DD12 EP93XX 90 #define EP93XX_GPIO_LINE_DD13 EP93XX 91 #define EP93XX_GPIO_LINE_DD14 EP93XX 92 #define EP93XX_GPIO_LINE_DD15 EP93XX 93 94 /* GPIO port H. */ 95 #define EP93XX_GPIO_LINE_H(x) ((x) + 96 #define EP93XX_GPIO_LINE_DD0 EP93XX 97 #define EP93XX_GPIO_LINE_DD1 EP93XX 98 #define EP93XX_GPIO_LINE_DD2 EP93XX 99 #define EP93XX_GPIO_LINE_DD3 EP93XX 100 #define EP93XX_GPIO_LINE_DD4 EP93XX 101 #define EP93XX_GPIO_LINE_DD5 EP93XX 102 #define EP93XX_GPIO_LINE_DD6 EP93XX 103 #define EP93XX_GPIO_LINE_DD7 EP93XX 104 105 /* maximum value for gpio line identifiers */ 106 #define EP93XX_GPIO_LINE_MAX EP93XX 107 108 /* maximum value for irq capable line identifi 109 #define EP93XX_GPIO_LINE_MAX_IRQ EP93XX 110 111 #endif /* __GPIO_EP93XX_H */ 112
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.