zephyr/include/dt-bindings/interrupt-controller/ite-intc.h

148 lines
4.6 KiB
C
Raw Normal View History

/*
* Copyright (c) 2020 ITE Corporation. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_INTERRUPT_CONTROLLER_ITE_INTC_H_
#define ZEPHYR_INCLUDE_DT_BINDINGS_INTERRUPT_CONTROLLER_ITE_INTC_H_
#define IRQ_TYPE_NONE 0
#define IRQ_TYPE_EDGE_RISING 1
#define IRQ_TYPE_EDGE_FALLING 2
#define IRQ_TYPE_EDGE_BOTH (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)
#define IRQ_TYPE_LEVEL_HIGH 4
#define IRQ_TYPE_LEVEL_LOW 8
/* IRQ numbers of WUC */
/* Group 0 of INTC */
#define IT8XXX2_IRQ_WU20 1
#define IT8XXX2_IRQ_WU23 6
/* Group 1 */
#define IT8XXX2_IRQ_WU26 12
#define IT8XXX2_IRQ_WU25 14
/* Group 2 */
#define IT8XXX2_IRQ_WU24 17
#define IT8XXX2_IRQ_WU22 21
/* Group 3 */
#define IT8XXX2_IRQ_WU21 31
/* Group 5 */
#define IT8XXX2_IRQ_WU50 40
#define IT8XXX2_IRQ_WU51 41
#define IT8XXX2_IRQ_WU52 42
#define IT8XXX2_IRQ_WU53 43
#define IT8XXX2_IRQ_WU54 44
#define IT8XXX2_IRQ_WU55 45
#define IT8XXX2_IRQ_WU56 46
#define IT8XXX2_IRQ_WU57 47
/* Group 6 */
#define IT8XXX2_IRQ_WU60 48
#define IT8XXX2_IRQ_WU61 49
#define IT8XXX2_IRQ_WU62 50
#define IT8XXX2_IRQ_WU63 51
#define IT8XXX2_IRQ_WU64 52
#define IT8XXX2_IRQ_WU65 53
#define IT8XXX2_IRQ_WU66 54
#define IT8XXX2_IRQ_WU67 55
/* Group 9 */
#define IT8XXX2_IRQ_WU70 72
#define IT8XXX2_IRQ_WU71 73
#define IT8XXX2_IRQ_WU72 74
#define IT8XXX2_IRQ_WU73 75
#define IT8XXX2_IRQ_WU74 76
#define IT8XXX2_IRQ_WU75 77
#define IT8XXX2_IRQ_WU76 78
#define IT8XXX2_IRQ_WU77 79
/* Group 10 */
#define IT8XXX2_IRQ_WU88 85
#define IT8XXX2_IRQ_WU89 86
#define IT8XXX2_IRQ_WU90 87
/* Group 11 */
#define IT8XXX2_IRQ_WU80 88
#define IT8XXX2_IRQ_WU81 89
#define IT8XXX2_IRQ_WU82 90
#define IT8XXX2_IRQ_WU83 91
#define IT8XXX2_IRQ_WU84 92
#define IT8XXX2_IRQ_WU85 93
#define IT8XXX2_IRQ_WU86 94
#define IT8XXX2_IRQ_WU87 95
/* Group 12 */
#define IT8XXX2_IRQ_WU91 96
#define IT8XXX2_IRQ_WU92 97
#define IT8XXX2_IRQ_WU93 98
#define IT8XXX2_IRQ_WU94 99
#define IT8XXX2_IRQ_WU95 100
#define IT8XXX2_IRQ_WU96 101
#define IT8XXX2_IRQ_WU97 102
#define IT8XXX2_IRQ_WU98 103
/* Group 13 */
#define IT8XXX2_IRQ_WU99 104
#define IT8XXX2_IRQ_WU100 105
#define IT8XXX2_IRQ_WU101 106
#define IT8XXX2_IRQ_WU102 107
#define IT8XXX2_IRQ_WU103 108
#define IT8XXX2_IRQ_WU104 109
#define IT8XXX2_IRQ_WU105 110
#define IT8XXX2_IRQ_WU106 111
/* Group 14 */
#define IT8XXX2_IRQ_WU107 112
#define IT8XXX2_IRQ_WU108 113
#define IT8XXX2_IRQ_WU109 114
#define IT8XXX2_IRQ_WU110 115
#define IT8XXX2_IRQ_WU111 116
#define IT8XXX2_IRQ_WU112 117
#define IT8XXX2_IRQ_WU113 118
#define IT8XXX2_IRQ_WU114 119
/* Group 15 */
#define IT8XXX2_IRQ_WU115 120
#define IT8XXX2_IRQ_WU116 121
#define IT8XXX2_IRQ_WU117 122
#define IT8XXX2_IRQ_WU118 123
#define IT8XXX2_IRQ_WU119 124
#define IT8XXX2_IRQ_WU120 125
#define IT8XXX2_IRQ_WU121 126
#define IT8XXX2_IRQ_WU122 127
/* Group 16 */
#define IT8XXX2_IRQ_WU128 128
#define IT8XXX2_IRQ_WU129 129
#define IT8XXX2_IRQ_WU130 130
#define IT8XXX2_IRQ_WU131 131
#define IT8XXX2_IRQ_WU132 132
#define IT8XXX2_IRQ_WU133 133
#define IT8XXX2_IRQ_WU134 134
#define IT8XXX2_IRQ_WU135 135
/* Group 17 */
#define IT8XXX2_IRQ_WU136 136
#define IT8XXX2_IRQ_WU137 137
#define IT8XXX2_IRQ_WU138 138
#define IT8XXX2_IRQ_WU139 139
#define IT8XXX2_IRQ_WU140 140
#define IT8XXX2_IRQ_WU141 141
#define IT8XXX2_IRQ_WU142 142
#define IT8XXX2_IRQ_WU143 143
/* Group 18 */
#define IT8XXX2_IRQ_WU123 144
#define IT8XXX2_IRQ_WU124 145
#define IT8XXX2_IRQ_WU125 146
#define IT8XXX2_IRQ_WU126 147
/* Group 20 */
#define IT8XXX2_IRQ_USBPD0 165
#define IT8XXX2_IRQ_USBPD1 166
/* Group 21 */
#define IT8XXX2_IRQ_USBPD2 174
/* Group 22 */
#define IT8XXX2_IRQ_WU40 176
#define IT8XXX2_IRQ_WU45 177
#define IT8XXX2_IRQ_WU46 178
#define IT8XXX2_IRQ_WU144 179
#define IT8XXX2_IRQ_WU145 180
#define IT8XXX2_IRQ_WU146 181
#define IT8XXX2_IRQ_WU147 182
#define IT8XXX2_IRQ_WU148 183
/* Group 23 */
#define IT8XXX2_IRQ_WU149 184
#define IT8XXX2_IRQ_WU150 185
#define IT8XXX2_IRQ_COUNT (CONFIG_NUM_IRQS + 1)
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_INTERRUPT_CONTROLLER_ITE_INTC_H_ */