1 /** @file
2   GPIO pins,
3 
4   Copyright (c) 2019 Intel Corporation. All rights reserved. <BR>
5 
6   SPDX-License-Identifier: BSD-2-Clause-Patent
7 **/
8 
9 #ifndef _GPIO_PINS_CNL_LP_H_
10 #define _GPIO_PINS_CNL_LP_H_
11 ///
12 /// This header file should be used together with
13 /// PCH GPIO lib in C and ASL. All defines used
14 /// must match both ASL/C syntax
15 ///
16 
17 ///
18 /// Unique ID used in GpioPad defines
19 ///
20 #define GPIO_CNL_LP_CHIPSET_ID      0x4
21 
22 ///
23 /// Use below for functions from PCH GPIO Lib which
24 /// require GpioGroup as argument
25 ///
26 #define GPIO_CNL_LP_GROUP_GPP_A  0x0400
27 #define GPIO_CNL_LP_GROUP_GPP_B  0x0401
28 #define GPIO_CNL_LP_GROUP_GPP_C  0x0402
29 #define GPIO_CNL_LP_GROUP_GPP_D  0x0403
30 #define GPIO_CNL_LP_GROUP_GPP_E  0x0404
31 #define GPIO_CNL_LP_GROUP_GPP_F  0x0405
32 #define GPIO_CNL_LP_GROUP_GPP_G  0x0406
33 #define GPIO_CNL_LP_GROUP_GPP_H  0x0407
34 #define GPIO_CNL_LP_GROUP_GPD    0x0408
35 #define GPIO_CNL_LP_GROUP_VGPIO  0x0409
36 #define GPIO_CNL_LP_GROUP_SPI    0x040A
37 #define GPIO_CNL_LP_GROUP_AZA    0x040B
38 #define GPIO_CNL_LP_GROUP_CPU    0x040C
39 #define GPIO_CNL_LP_GROUP_JTAG   0x040D
40 #define GPIO_CNL_LP_GROUP_HVMOS  0x040E
41 
42 ///
43 /// Use below for functions from PCH GPIO Lib which
44 /// require GpioPad as argument. Encoding used here
45 /// has all information required by library functions
46 ///
47 #define GPIO_CNL_LP_GPP_A0               0x04000000
48 #define GPIO_CNL_LP_GPP_A1               0x04000001
49 #define GPIO_CNL_LP_GPP_A2               0x04000002
50 #define GPIO_CNL_LP_GPP_A3               0x04000003
51 #define GPIO_CNL_LP_GPP_A4               0x04000004
52 #define GPIO_CNL_LP_GPP_A5               0x04000005
53 #define GPIO_CNL_LP_GPP_A6               0x04000006
54 #define GPIO_CNL_LP_GPP_A7               0x04000007
55 #define GPIO_CNL_LP_GPP_A8               0x04000008
56 #define GPIO_CNL_LP_GPP_A9               0x04000009
57 #define GPIO_CNL_LP_GPP_A10              0x0400000A
58 #define GPIO_CNL_LP_GPP_A11              0x0400000B
59 #define GPIO_CNL_LP_GPP_A12              0x0400000C
60 #define GPIO_CNL_LP_GPP_A13              0x0400000D
61 #define GPIO_CNL_LP_GPP_A14              0x0400000E
62 #define GPIO_CNL_LP_GPP_A15              0x0400000F
63 #define GPIO_CNL_LP_GPP_A16              0x04000010
64 #define GPIO_CNL_LP_GPP_A17              0x04000011
65 #define GPIO_CNL_LP_GPP_A18              0x04000012
66 #define GPIO_CNL_LP_GPP_A19              0x04000013
67 #define GPIO_CNL_LP_GPP_A20              0x04000014
68 #define GPIO_CNL_LP_GPP_A21              0x04000015
69 #define GPIO_CNL_LP_GPP_A22              0x04000016
70 #define GPIO_CNL_LP_GPP_A23              0x04000017
71 #define GPIO_CNL_LP_ESPI_CLK_LOOPBK      0x04000018
72 
73 #define GPIO_CNL_LP_GPP_B0               0x04010000
74 #define GPIO_CNL_LP_GPP_B1               0x04010001
75 #define GPIO_CNL_LP_GPP_B2               0x04010002
76 #define GPIO_CNL_LP_GPP_B3               0x04010003
77 #define GPIO_CNL_LP_GPP_B4               0x04010004
78 #define GPIO_CNL_LP_GPP_B5               0x04010005
79 #define GPIO_CNL_LP_GPP_B6               0x04010006
80 #define GPIO_CNL_LP_GPP_B7               0x04010007
81 #define GPIO_CNL_LP_GPP_B8               0x04010008
82 #define GPIO_CNL_LP_GPP_B9               0x04010009
83 #define GPIO_CNL_LP_GPP_B10              0x0401000A
84 #define GPIO_CNL_LP_GPP_B11              0x0401000B
85 #define GPIO_CNL_LP_GPP_B12              0x0401000C
86 #define GPIO_CNL_LP_GPP_B13              0x0401000D
87 #define GPIO_CNL_LP_GPP_B14              0x0401000E
88 #define GPIO_CNL_LP_GPP_B15              0x0401000F
89 #define GPIO_CNL_LP_GPP_B16              0x04010010
90 #define GPIO_CNL_LP_GPP_B17              0x04010011
91 #define GPIO_CNL_LP_GPP_B18              0x04010012
92 #define GPIO_CNL_LP_GPP_B19              0x04010013
93 #define GPIO_CNL_LP_GPP_B20              0x04010014
94 #define GPIO_CNL_LP_GPP_B21              0x04010015
95 #define GPIO_CNL_LP_GPP_B22              0x04010016
96 #define GPIO_CNL_LP_GPP_B23              0x04010017
97 #define GPIO_CNL_LP_GSPI0_CLK_LOOPBK     0x04010018
98 #define GPIO_CNL_LP_GSPI1_CLK_LOOPBK     0x04010019
99 
100 #define GPIO_CNL_LP_GPP_C0               0x04020000
101 #define GPIO_CNL_LP_GPP_C1               0x04020001
102 #define GPIO_CNL_LP_GPP_C2               0x04020002
103 #define GPIO_CNL_LP_GPP_C3               0x04020003
104 #define GPIO_CNL_LP_GPP_C4               0x04020004
105 #define GPIO_CNL_LP_GPP_C5               0x04020005
106 #define GPIO_CNL_LP_GPP_C6               0x04020006
107 #define GPIO_CNL_LP_GPP_C7               0x04020007
108 #define GPIO_CNL_LP_GPP_C8               0x04020008
109 #define GPIO_CNL_LP_GPP_C9               0x04020009
110 #define GPIO_CNL_LP_GPP_C10              0x0402000A
111 #define GPIO_CNL_LP_GPP_C11              0x0402000B
112 #define GPIO_CNL_LP_GPP_C12              0x0402000C
113 #define GPIO_CNL_LP_GPP_C13              0x0402000D
114 #define GPIO_CNL_LP_GPP_C14              0x0402000E
115 #define GPIO_CNL_LP_GPP_C15              0x0402000F
116 #define GPIO_CNL_LP_GPP_C16              0x04020010
117 #define GPIO_CNL_LP_GPP_C17              0x04020011
118 #define GPIO_CNL_LP_GPP_C18              0x04020012
119 #define GPIO_CNL_LP_GPP_C19              0x04020013
120 #define GPIO_CNL_LP_GPP_C20              0x04020014
121 #define GPIO_CNL_LP_GPP_C21              0x04020015
122 #define GPIO_CNL_LP_GPP_C22              0x04020016
123 #define GPIO_CNL_LP_GPP_C23              0x04020017
124 
125 #define GPIO_CNL_LP_GPP_D0               0x04030000
126 #define GPIO_CNL_LP_GPP_D1               0x04030001
127 #define GPIO_CNL_LP_GPP_D2               0x04030002
128 #define GPIO_CNL_LP_GPP_D3               0x04030003
129 #define GPIO_CNL_LP_GPP_D4               0x04030004
130 #define GPIO_CNL_LP_GPP_D5               0x04030005
131 #define GPIO_CNL_LP_GPP_D6               0x04030006
132 #define GPIO_CNL_LP_GPP_D7               0x04030007
133 #define GPIO_CNL_LP_GPP_D8               0x04030008
134 #define GPIO_CNL_LP_GPP_D9               0x04030009
135 #define GPIO_CNL_LP_GPP_D10              0x0403000A
136 #define GPIO_CNL_LP_GPP_D11              0x0403000B
137 #define GPIO_CNL_LP_GPP_D12              0x0403000C
138 #define GPIO_CNL_LP_GPP_D13              0x0403000D
139 #define GPIO_CNL_LP_GPP_D14              0x0403000E
140 #define GPIO_CNL_LP_GPP_D15              0x0403000F
141 #define GPIO_CNL_LP_GPP_D16              0x04030010
142 #define GPIO_CNL_LP_GPP_D17              0x04030011
143 #define GPIO_CNL_LP_GPP_D18              0x04030012
144 #define GPIO_CNL_LP_GPP_D19              0x04030013
145 #define GPIO_CNL_LP_GPP_D20              0x04030014
146 #define GPIO_CNL_LP_GPP_D21              0x04030015
147 #define GPIO_CNL_LP_GPP_D22              0x04030016
148 #define GPIO_CNL_LP_GPP_D23              0x04030017
149 
150 #define GPIO_CNL_LP_GPP_E0               0x04040000
151 #define GPIO_CNL_LP_GPP_E1               0x04040001
152 #define GPIO_CNL_LP_GPP_E2               0x04040002
153 #define GPIO_CNL_LP_GPP_E3               0x04040003
154 #define GPIO_CNL_LP_GPP_E4               0x04040004
155 #define GPIO_CNL_LP_GPP_E5               0x04040005
156 #define GPIO_CNL_LP_GPP_E6               0x04040006
157 #define GPIO_CNL_LP_GPP_E7               0x04040007
158 #define GPIO_CNL_LP_GPP_E8               0x04040008
159 #define GPIO_CNL_LP_GPP_E9               0x04040009
160 #define GPIO_CNL_LP_GPP_E10              0x0404000A
161 #define GPIO_CNL_LP_GPP_E11              0x0404000B
162 #define GPIO_CNL_LP_GPP_E12              0x0404000C
163 #define GPIO_CNL_LP_GPP_E13              0x0404000D
164 #define GPIO_CNL_LP_GPP_E14              0x0404000E
165 #define GPIO_CNL_LP_GPP_E15              0x0404000F
166 #define GPIO_CNL_LP_GPP_E16              0x04040010
167 #define GPIO_CNL_LP_GPP_E17              0x04040011
168 #define GPIO_CNL_LP_GPP_E18              0x04040012
169 #define GPIO_CNL_LP_GPP_E19              0x04040013
170 #define GPIO_CNL_LP_GPP_E20              0x04040014
171 #define GPIO_CNL_LP_GPP_E21              0x04040015
172 #define GPIO_CNL_LP_GPP_E22              0x04040016
173 #define GPIO_CNL_LP_GPP_E23              0x04040017
174 
175 #define GPIO_CNL_LP_GPP_F0               0x04050000
176 #define GPIO_CNL_LP_GPP_F1               0x04050001
177 #define GPIO_CNL_LP_GPP_F2               0x04050002
178 #define GPIO_CNL_LP_GPP_F3               0x04050003
179 #define GPIO_CNL_LP_GPP_F4               0x04050004
180 #define GPIO_CNL_LP_GPP_F5               0x04050005
181 #define GPIO_CNL_LP_GPP_F6               0x04050006
182 #define GPIO_CNL_LP_GPP_F7               0x04050007
183 #define GPIO_CNL_LP_GPP_F8               0x04050008
184 #define GPIO_CNL_LP_GPP_F9               0x04050009
185 #define GPIO_CNL_LP_GPP_F10              0x0405000A
186 #define GPIO_CNL_LP_GPP_F11              0x0405000B
187 #define GPIO_CNL_LP_GPP_F12              0x0405000C
188 #define GPIO_CNL_LP_GPP_F13              0x0405000D
189 #define GPIO_CNL_LP_GPP_F14              0x0405000E
190 #define GPIO_CNL_LP_GPP_F15              0x0405000F
191 #define GPIO_CNL_LP_GPP_F16              0x04050010
192 #define GPIO_CNL_LP_GPP_F17              0x04050011
193 #define GPIO_CNL_LP_GPP_F18              0x04050012
194 #define GPIO_CNL_LP_GPP_F19              0x04050013
195 #define GPIO_CNL_LP_GPP_F20              0x04050014
196 #define GPIO_CNL_LP_GPP_F21              0x04050015
197 #define GPIO_CNL_LP_GPP_F22              0x04050016
198 #define GPIO_CNL_LP_GPP_F23              0x04050017
199 
200 #define GPIO_CNL_LP_GPP_G0               0x04060000
201 #define GPIO_CNL_LP_GPP_G1               0x04060001
202 #define GPIO_CNL_LP_GPP_G2               0x04060002
203 #define GPIO_CNL_LP_GPP_G3               0x04060003
204 #define GPIO_CNL_LP_GPP_G4               0x04060004
205 #define GPIO_CNL_LP_GPP_G5               0x04060005
206 #define GPIO_CNL_LP_GPP_G6               0x04060006
207 #define GPIO_CNL_LP_GPP_G7               0x04060007
208 
209 #define GPIO_CNL_LP_GPP_H0               0x04070000
210 #define GPIO_CNL_LP_GPP_H1               0x04070001
211 #define GPIO_CNL_LP_GPP_H2               0x04070002
212 #define GPIO_CNL_LP_GPP_H3               0x04070003
213 #define GPIO_CNL_LP_GPP_H4               0x04070004
214 #define GPIO_CNL_LP_GPP_H5               0x04070005
215 #define GPIO_CNL_LP_GPP_H6               0x04070006
216 #define GPIO_CNL_LP_GPP_H7               0x04070007
217 #define GPIO_CNL_LP_GPP_H8               0x04070008
218 #define GPIO_CNL_LP_GPP_H9               0x04070009
219 #define GPIO_CNL_LP_GPP_H10              0x0407000A
220 #define GPIO_CNL_LP_GPP_H11              0x0407000B
221 #define GPIO_CNL_LP_GPP_H12              0x0407000C
222 #define GPIO_CNL_LP_GPP_H13              0x0407000D
223 #define GPIO_CNL_LP_GPP_H14              0x0407000E
224 #define GPIO_CNL_LP_GPP_H15              0x0407000F
225 #define GPIO_CNL_LP_GPP_H16              0x04070010
226 #define GPIO_CNL_LP_GPP_H17              0x04070011
227 #define GPIO_CNL_LP_GPP_H18              0x04070012
228 #define GPIO_CNL_LP_GPP_H19              0x04070013
229 #define GPIO_CNL_LP_GPP_H20              0x04070014
230 #define GPIO_CNL_LP_GPP_H21              0x04070015
231 #define GPIO_CNL_LP_GPP_H22              0x04070016
232 #define GPIO_CNL_LP_GPP_H23              0x04070017
233 
234 #define GPIO_CNL_LP_GPD0                 0x04080000
235 #define GPIO_CNL_LP_GPD1                 0x04080001
236 #define GPIO_CNL_LP_GPD2                 0x04080002
237 #define GPIO_CNL_LP_GPD3                 0x04080003
238 #define GPIO_CNL_LP_GPD4                 0x04080004
239 #define GPIO_CNL_LP_GPD5                 0x04080005
240 #define GPIO_CNL_LP_GPD6                 0x04080006
241 #define GPIO_CNL_LP_GPD7                 0x04080007
242 #define GPIO_CNL_LP_GPD8                 0x04080008
243 #define GPIO_CNL_LP_GPD9                 0x04080009
244 #define GPIO_CNL_LP_GPD10                0x0408000A
245 #define GPIO_CNL_LP_GPD11                0x0408000B
246 #define GPIO_CNL_LP_SLP_LANB             0x0408000C
247 #define GPIO_CNL_LP_SLP_SUSB             0x0408000D
248 #define GPIO_CNL_LP_SLP_WAKEB            0x0408000E
249 #define GPIO_CNL_LP_SLP_DRAM_RESETB      0x0408000F
250 
251 #define GPIO_CNL_LP_VGPIO0               0x04090000
252 #define GPIO_CNL_LP_VGPIO1               0x04090001
253 #define GPIO_CNL_LP_VGPIO2               0x04090002
254 #define GPIO_CNL_LP_VGPIO3               0x04090003
255 #define GPIO_CNL_LP_VGPIO4               0x04090004
256 #define GPIO_CNL_LP_VGPIO5               0x04090005
257 #define GPIO_CNL_LP_VGPIO6               0x04090006
258 #define GPIO_CNL_LP_VGPIO7               0x04090007
259 #define GPIO_CNL_LP_VGPIO8               0x04090008
260 #define GPIO_CNL_LP_VGPIO9               0x04090009
261 #define GPIO_CNL_LP_VGPIO10              0x0409000A
262 #define GPIO_CNL_LP_VGPIO11              0x0409000B
263 #define GPIO_CNL_LP_VGPIO12              0x0409000C
264 #define GPIO_CNL_LP_VGPIO13              0x0409000D
265 #define GPIO_CNL_LP_VGPIO14              0x0409000E
266 #define GPIO_CNL_LP_VGPIO15              0x0409000F
267 #define GPIO_CNL_LP_VGPIO16              0x04090010
268 #define GPIO_CNL_LP_VGPIO17              0x04090011
269 #define GPIO_CNL_LP_VGPIO18              0x04090012
270 #define GPIO_CNL_LP_VGPIO19              0x04090013
271 #define GPIO_CNL_LP_VGPIO20              0x04090014
272 #define GPIO_CNL_LP_VGPIO21              0x04090015
273 #define GPIO_CNL_LP_VGPIO22              0x04090016
274 #define GPIO_CNL_LP_VGPIO23              0x04090017
275 #define GPIO_CNL_LP_VGPIO24              0x04090018
276 #define GPIO_CNL_LP_VGPIO25              0x04090019
277 #define GPIO_CNL_LP_VGPIO26              0x0409001A
278 #define GPIO_CNL_LP_VGPIO27              0x0409001B
279 #define GPIO_CNL_LP_VGPIO28              0x0409001C
280 #define GPIO_CNL_LP_VGPIO29              0x0409001D
281 #define GPIO_CNL_LP_VGPIO30              0x0409001E
282 #define GPIO_CNL_LP_VGPIO31              0x0409001F
283 #define GPIO_CNL_LP_VGPIO32              0x04090020
284 #define GPIO_CNL_LP_VGPIO33              0x04090021
285 #define GPIO_CNL_LP_VGPIO34              0x04090022
286 #define GPIO_CNL_LP_VGPIO35              0x04090023
287 #define GPIO_CNL_LP_VGPIO36              0x04090024
288 #define GPIO_CNL_LP_VGPIO37              0x04090025
289 #define GPIO_CNL_LP_VGPIO38              0x04090026
290 #define GPIO_CNL_LP_VGPIO39              0x04090027
291 
292 #define GPIO_CNL_LP_SPI0_IO_2            0x040A0000
293 #define GPIO_CNL_LP_SPI0_IO_3            0x040A0001
294 #define GPIO_CNL_LP_SPI0_MOSI_IO_0       0x040A0002
295 #define GPIO_CNL_LP_SPI0_MOSI_IO_1       0x040A0003
296 #define GPIO_CNL_LP_SPI0_TPM_CSB         0x040A0004
297 #define GPIO_CNL_LP_SPI0_FLASH_0_CSB     0x040A0005
298 #define GPIO_CNL_LP_SPI0_FLASH_1_CSB     0x040A0006
299 #define GPIO_CNL_LP_SPI0_CLK             0x040A0007
300 #define GPIO_CNL_LP_SPI0_CLK_LOOPBK      0x040A0008
301 
302 #define GPIO_CNL_LP_HDA_BCLK             0x040B0000
303 #define GPIO_CNL_LP_HDA_RSTB             0x040B0001
304 #define GPIO_CNL_LP_HDA_SYNC             0x040B0002
305 #define GPIO_CNL_LP_HDA_SDO              0x040B0003
306 #define GPIO_CNL_LP_HDA_SDI_0            0x040B0004
307 #define GPIO_CNL_LP_HDA_SDI_1            0x040B0005
308 #define GPIO_CNL_LP_SSP1_SFRM            0x040B0006
309 #define GPIO_CNL_LP_SSP1_TXD             0x040B0007
310 
311 #define GPIO_CNL_LP_HDACPU_SDI           0x040C0000
312 #define GPIO_CNL_LP_HDACPU_SDO           0x040C0001
313 #define GPIO_CNL_LP_HDACPU_SCLK          0x040C0002
314 #define GPIO_CNL_LP_PM_SYNC              0x040C0003
315 #define GPIO_CNL_LP_PECI                 0x040C0004
316 #define GPIO_CNL_LP_CPUPWRGD             0x040C0005
317 #define GPIO_CNL_LP_THRMTRIPB            0x040C0006
318 #define GPIO_CNL_LP_PLTRST_CPUB          0x040C0007
319 #define GPIO_CNL_LP_PM_DOWN              0x040C0008
320 #define GPIO_CNL_LP_TRIGGER_IN           0x040C0009
321 #define GPIO_CNL_LP_TRIGGER_OUT          0x040C000A
322 
323 #define GPIO_CNL_LP_JTAG_TDO             0x040D0000
324 #define GPIO_CNL_LP_JTAGX                0x040D0001
325 #define GPIO_CNL_LP_PRDYB                0x040D0002
326 #define GPIO_CNL_LP_PREQB                0x040D0003
327 #define GPIO_CNL_LP_CPU_TRSTB            0x040D0004
328 #define GPIO_CNL_LP_JTAG_TDI             0x040D0005
329 #define GPIO_CNL_LP_JTAG_TMS             0x040D0006
330 #define GPIO_CNL_LP_JTAG_TCK             0x040D0007
331 #define GPIO_CNL_LP_ITP_PMODE            0x040D0008
332 
333 #define GPIO_CNL_LP_HVMOS_L_BKLTEN       0x040E0000
334 #define GPIO_CNL_LP_HVMOS_L_BKLTCTL      0x040E0001
335 #define GPIO_CNL_LP_HVMOS_L_VDDEN        0x040E0002
336 #define GPIO_CNL_LP_HVMOS_SYS_PWROK      0x040E0003
337 #define GPIO_CNL_LP_HVMOS_SYS_RESETB     0x040E0004
338 #define GPIO_CNL_LP_HVMOS_MLK_RSTB       0x040E0005
339 
340 #endif
341