blob: 3318ab1257d3983cddaf6bca204eb1fc7a4b4bb9 [file] [log] [blame]
Nico Huber83693c82016-10-08 22:17:55 +02001--
Nico Huber01b680f2017-06-09 16:24:22 +02002-- Copyright (C) 2015-2017 secunet Security Networks AG
Nico Huber83693c82016-10-08 22:17:55 +02003--
4-- This program is free software; you can redistribute it and/or modify
5-- it under the terms of the GNU General Public License as published by
Nico Huber125a29e2016-10-18 00:23:54 +02006-- the Free Software Foundation; either version 2 of the License, or
7-- (at your option) any later version.
Nico Huber83693c82016-10-08 22:17:55 +02008--
9-- This program is distributed in the hope that it will be useful,
10-- but WITHOUT ANY WARRANTY; without even the implied warranty of
11-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12-- GNU General Public License for more details.
13--
14
15with System;
16with HW.GFX.GMA;
Nico Huberadfe11f2018-06-10 14:59:04 +020017with HW.GFX.GMA.Config;
Nico Huber83693c82016-10-08 22:17:55 +020018
19private package HW.GFX.GMA.Registers
20with
21 Abstract_State =>
22 ((Address_State with Part_Of => GMA.State),
23 (Register_State with External, Part_Of => GMA.Device_State),
24 (GTT_State with External, Part_Of => GMA.Device_State)),
25 Initializes => Address_State
26is
Nico Huber0b2329a2018-06-09 21:14:27 +020027
28 MMIO_GTT_32_Size : constant := 16#20_0000#;
29 MMIO_GTT_32_Offset : constant := 16#20_0000#;
30
31 -- Limit Broadwell+ to 4MiB to have a stable
32 -- interface (i.e. same number of entries):
33 MMIO_GTT_64_Size : constant := 16#40_0000#;
34 MMIO_GTT_64_Offset : constant := 16#80_0000#;
35
Nico Huber83693c82016-10-08 22:17:55 +020036 type Registers_Invalid_Index is
37 (Invalid_Register, -- Allow a placeholder when access is not acceptable
38
39 RCS_RING_BUFFER_TAIL,
40 RCS_RING_BUFFER_HEAD,
41 RCS_RING_BUFFER_STRT,
42 RCS_RING_BUFFER_CTL,
43 QUIRK_02084,
44 QUIRK_02090,
45 HWSTAM,
46 MI_MODE,
47 INSTPM,
48 GT_MODE,
49 CACHE_MODE_0,
50 CTX_SIZE,
51 PP_DCLV_HIGH,
52 PP_DCLV_LOW,
53 GFX_MODE,
54 ARB_MODE,
55 HWS_PGA,
56 GAM_ECOCHK,
Arthur Heymans229ed1c2018-03-28 16:45:43 +020057 GMCH_GMBUS0,
58 GMCH_GMBUS1,
59 GMCH_GMBUS2,
60 GMCH_GMBUS3,
61 GMCH_GMBUS4,
62 GMCH_GMBUS5,
Arthur Heymans73ea0322018-03-28 17:17:07 +020063 GMCH_DPLL_A,
64 GMCH_DPLL_B,
65 GMCH_FPA0,
66 GMCH_FPA1,
67 GMCH_FPB0,
68 GMCH_FPB1,
Nico Huber83693c82016-10-08 22:17:55 +020069 MBCTL,
70 UCGCTL1,
71 UCGCTL2,
Arthur Heymans73ea0322018-03-28 17:17:07 +020072 GMCH_CLKCFG,
Nico Huberb47a5c42019-09-29 00:07:21 +020073 GMCH_HPLLVCO_MOBILE,
74 GMCH_HPLLVCO,
Nico Huber83693c82016-10-08 22:17:55 +020075 VCS_RING_BUFFER_TAIL,
76 VCS_RING_BUFFER_HEAD,
77 VCS_RING_BUFFER_STRT,
78 VCS_RING_BUFFER_CTL,
79 SLEEP_PSMI_CONTROL,
80 VCS_HWSTAM,
81 VCS_PP_DCLV_HIGH,
82 VCS_PP_DCLV_LOW,
83 GAC_ECO_BITS,
84 BCS_RING_BUFFER_TAIL,
85 BCS_RING_BUFFER_HEAD,
86 BCS_RING_BUFFER_STRT,
87 BCS_RING_BUFFER_CTL,
88 BCS_HWSTAM,
89 BCS_PP_DCLV_HIGH,
90 BCS_PP_DCLV_LOW,
91 GAB_CTL_REG,
Arthur Heymansdfcdd772018-03-28 16:42:50 +020092 CPU_VGACNTRL,
Nico Huber83693c82016-10-08 22:17:55 +020093 FUSE_STATUS,
Nico Huberfbb42202016-11-07 15:08:26 +010094 ILK_DISPLAY_CHICKEN2,
Nico Huberd0f84b92019-09-22 21:31:52 +020095 FUSE_STRAP,
Nico Huber83693c82016-10-08 22:17:55 +020096 DSPCLK_GATE_D,
97 FBA_CFB_BASE,
98 FBC_CTL,
99 IPS_CTL,
100 DEISR,
101 DEIMR,
102 DEIIR,
103 DEIER,
104 GTISR,
105 GTIMR,
106 GTIIR,
107 GTIER,
108 IIR,
109 HOTPLUG_CTL,
110 ARB_CTL,
111 DBUF_CTL,
112 WM_PIPE_A,
113 WM_PIPE_B,
114 WM1_LP_ILK,
115 WM2_LP_ILK,
116 WM3_LP_ILK,
117 WM_PIPE_C,
118 WM_LINETIME_A,
119 WM_LINETIME_B,
120 WM_LINETIME_C,
121 PWR_WELL_CTL_BIOS,
122 PWR_WELL_CTL_DRIVER,
123 PWR_WELL_CTL_KVMR,
124 PWR_WELL_CTL_DEBUG,
125 PWR_WELL_CTL5,
126 PWR_WELL_CTL6,
127 CDCLK_CTL,
128 LCPLL1_CTL,
129 LCPLL2_CTL,
130 SPLL_CTL,
131 WRPLL_CTL_1,
132 WRPLL_CTL_2,
Nico Huber40820442017-01-20 14:00:53 +0100133 BXT_DE_PLL_ENABLE,
Nico Huber4b0239f2017-02-07 18:26:51 +0100134 BXT_PORT_PLL_ENABLE_A,
135 BXT_PORT_PLL_ENABLE_B,
136 BXT_PORT_PLL_ENABLE_C,
Nico Huber83693c82016-10-08 22:17:55 +0200137 PORT_CLK_SEL_DDIA,
138 PORT_CLK_SEL_DDIB,
139 PORT_CLK_SEL_DDIC,
140 PORT_CLK_SEL_DDID,
141 PORT_CLK_SEL_DDIE,
142 TRANSA_CLK_SEL,
143 TRANSB_CLK_SEL,
144 TRANSC_CLK_SEL,
Nico Huberd0f84b92019-09-22 21:31:52 +0200145 CDCLK_FREQ,
Nico Huber83693c82016-10-08 22:17:55 +0200146 NDE_RSTWRN_OPT,
Angel Ponsae186bd2020-10-21 21:37:34 +0200147 GEN8_CHICKEN_DCPR_1,
Nico Huber83693c82016-10-08 22:17:55 +0200148 BLC_PWM_CPU_CTL2,
149 BLC_PWM_CPU_CTL,
Nico Huber6b4678d2019-09-22 21:31:52 +0200150 DFSM,
Nico Huber83693c82016-10-08 22:17:55 +0200151 HTOTAL_A,
152 HBLANK_A,
153 HSYNC_A,
154 VTOTAL_A,
155 VBLANK_A,
156 VSYNC_A,
157 PIPEASRC,
158 PIPE_VSYNCSHIFT_A,
159 PIPEA_DATA_M1,
160 PIPEA_DATA_N1,
161 PIPEA_LINK_M1,
162 PIPEA_LINK_N1,
163 FDI_TX_CTL_A,
164 PIPEA_DDI_FUNC_CTL,
165 PIPEA_MSA_MISC,
166 SRD_CTL_A,
167 SRD_STATUS_A,
168 HTOTAL_B,
169 HBLANK_B,
170 HSYNC_B,
171 VTOTAL_B,
172 VBLANK_B,
173 VSYNC_B,
174 PIPEBSRC,
175 PIPE_VSYNCSHIFT_B,
176 PIPEB_DATA_M1,
177 PIPEB_DATA_N1,
178 PIPEB_LINK_M1,
179 PIPEB_LINK_N1,
180 FDI_TX_CTL_B,
Arthur Heymans73ea0322018-03-28 17:17:07 +0200181 PORT_HOTPLUG_EN,
182 PORT_HOTPLUG_STAT,
183 GMCH_SDVOB,
184 GMCH_SDVOC,
185 GMCH_LVDS,
Arthur Heymanse87d0d12018-03-28 17:02:49 +0200186 GMCH_PP_STATUS,
187 GMCH_PP_CONTROL,
188 GMCH_PP_ON_DELAYS,
189 GMCH_PP_OFF_DELAYS,
190 GMCH_PP_DIVISOR,
Arthur Heymansd5198442018-03-28 17:05:12 +0200191 GMCH_PFIT_CONTROL,
Nico Huber83693c82016-10-08 22:17:55 +0200192 PIPEB_DDI_FUNC_CTL,
193 PIPEB_MSA_MISC,
194 SRD_CTL_B,
195 SRD_STATUS_B,
196 HTOTAL_C,
197 HBLANK_C,
198 HSYNC_C,
199 VTOTAL_C,
200 VBLANK_C,
201 VSYNC_C,
202 PIPECSRC,
Arthur Heymans73ea0322018-03-28 17:17:07 +0200203 G4X_AUD_VID_DID,
Nico Huber83693c82016-10-08 22:17:55 +0200204 PIPE_VSYNCSHIFT_C,
205 PIPEC_DATA_M1,
206 PIPEC_DATA_N1,
207 PIPEC_LINK_M1,
208 PIPEC_LINK_N1,
209 FDI_TX_CTL_C,
210 PIPEC_DDI_FUNC_CTL,
211 PIPEC_MSA_MISC,
212 SRD_CTL_C,
213 SRD_STATUS_C,
214 DDI_BUF_CTL_A,
215 DDI_AUX_CTL_A,
216 DDI_AUX_DATA_A_1,
217 DDI_AUX_DATA_A_2,
218 DDI_AUX_DATA_A_3,
219 DDI_AUX_DATA_A_4,
220 DDI_AUX_DATA_A_5,
221 DDI_AUX_MUTEX_A,
222 DP_TP_CTL_A,
223 DDI_BUF_CTL_B,
224 DDI_AUX_CTL_B,
225 DDI_AUX_DATA_B_1,
226 DDI_AUX_DATA_B_2,
227 DDI_AUX_DATA_B_3,
228 DDI_AUX_DATA_B_4,
229 DDI_AUX_DATA_B_5,
230 DDI_AUX_MUTEX_B,
231 DP_TP_CTL_B,
232 DP_TP_STATUS_B,
233 DDI_BUF_CTL_C,
234 DDI_AUX_CTL_C,
235 DDI_AUX_DATA_C_1,
236 DDI_AUX_DATA_C_2,
237 DDI_AUX_DATA_C_3,
238 DDI_AUX_DATA_C_4,
239 DDI_AUX_DATA_C_5,
240 DDI_AUX_MUTEX_C,
241 DP_TP_CTL_C,
242 DP_TP_STATUS_C,
243 DDI_BUF_CTL_D,
244 DDI_AUX_CTL_D,
245 DDI_AUX_DATA_D_1,
246 DDI_AUX_DATA_D_2,
247 DDI_AUX_DATA_D_3,
248 DDI_AUX_DATA_D_4,
249 DDI_AUX_DATA_D_5,
250 DDI_AUX_MUTEX_D,
251 DP_TP_CTL_D,
252 DP_TP_STATUS_D,
253 DDI_BUF_CTL_E,
254 DP_TP_CTL_E,
255 DP_TP_STATUS_E,
256 SRD_CTL,
257 SRD_STATUS,
Nico Huberf6266002017-02-03 12:17:28 +0100258 BXT_PHY_CTL_A,
259 BXT_PHY_CTL_B,
260 BXT_PHY_CTL_C,
261 BXT_PHY_CTL_FAM_EDP,
262 BXT_PHY_CTL_FAM_DDI,
Nico Huber01b680f2017-06-09 16:24:22 +0200263 DDI_BUF_TRANS_A_S0T1,
264 DDI_BUF_TRANS_A_S0T2,
265 DDI_BUF_TRANS_A_S1T1,
266 DDI_BUF_TRANS_A_S1T2,
267 DDI_BUF_TRANS_A_S2T1,
268 DDI_BUF_TRANS_A_S2T2,
269 DDI_BUF_TRANS_A_S3T1,
270 DDI_BUF_TRANS_A_S3T2,
271 DDI_BUF_TRANS_A_S4T1,
272 DDI_BUF_TRANS_A_S4T2,
273 DDI_BUF_TRANS_A_S5T1,
274 DDI_BUF_TRANS_A_S5T2,
275 DDI_BUF_TRANS_A_S6T1,
276 DDI_BUF_TRANS_A_S6T2,
277 DDI_BUF_TRANS_A_S7T1,
278 DDI_BUF_TRANS_A_S7T2,
279 DDI_BUF_TRANS_A_S8T1,
280 DDI_BUF_TRANS_A_S8T2,
281 DDI_BUF_TRANS_A_S9T1,
282 DDI_BUF_TRANS_A_S9T2,
283 DDI_BUF_TRANS_B_S0T1,
284 DDI_BUF_TRANS_B_S0T2,
285 DDI_BUF_TRANS_B_S1T1,
286 DDI_BUF_TRANS_B_S1T2,
287 DDI_BUF_TRANS_B_S2T1,
288 DDI_BUF_TRANS_B_S2T2,
289 DDI_BUF_TRANS_B_S3T1,
290 DDI_BUF_TRANS_B_S3T2,
291 DDI_BUF_TRANS_B_S4T1,
292 DDI_BUF_TRANS_B_S4T2,
293 DDI_BUF_TRANS_B_S5T1,
294 DDI_BUF_TRANS_B_S5T2,
295 DDI_BUF_TRANS_B_S6T1,
296 DDI_BUF_TRANS_B_S6T2,
297 DDI_BUF_TRANS_B_S7T1,
298 DDI_BUF_TRANS_B_S7T2,
299 DDI_BUF_TRANS_B_S8T1,
300 DDI_BUF_TRANS_B_S8T2,
301 DDI_BUF_TRANS_B_S9T1,
302 DDI_BUF_TRANS_B_S9T2,
303 DDI_BUF_TRANS_C_S0T1,
304 DDI_BUF_TRANS_C_S0T2,
305 DDI_BUF_TRANS_C_S1T1,
306 DDI_BUF_TRANS_C_S1T2,
307 DDI_BUF_TRANS_C_S2T1,
308 DDI_BUF_TRANS_C_S2T2,
309 DDI_BUF_TRANS_C_S3T1,
310 DDI_BUF_TRANS_C_S3T2,
311 DDI_BUF_TRANS_C_S4T1,
312 DDI_BUF_TRANS_C_S4T2,
313 DDI_BUF_TRANS_C_S5T1,
314 DDI_BUF_TRANS_C_S5T2,
315 DDI_BUF_TRANS_C_S6T1,
316 DDI_BUF_TRANS_C_S6T2,
317 DDI_BUF_TRANS_C_S7T1,
318 DDI_BUF_TRANS_C_S7T2,
319 DDI_BUF_TRANS_C_S8T1,
320 DDI_BUF_TRANS_C_S8T2,
321 DDI_BUF_TRANS_C_S9T1,
322 DDI_BUF_TRANS_C_S9T2,
323 DDI_BUF_TRANS_D_S0T1,
324 DDI_BUF_TRANS_D_S0T2,
325 DDI_BUF_TRANS_D_S1T1,
326 DDI_BUF_TRANS_D_S1T2,
327 DDI_BUF_TRANS_D_S2T1,
328 DDI_BUF_TRANS_D_S2T2,
329 DDI_BUF_TRANS_D_S3T1,
330 DDI_BUF_TRANS_D_S3T2,
331 DDI_BUF_TRANS_D_S4T1,
332 DDI_BUF_TRANS_D_S4T2,
333 DDI_BUF_TRANS_D_S5T1,
334 DDI_BUF_TRANS_D_S5T2,
335 DDI_BUF_TRANS_D_S6T1,
336 DDI_BUF_TRANS_D_S6T2,
337 DDI_BUF_TRANS_D_S7T1,
338 DDI_BUF_TRANS_D_S7T2,
339 DDI_BUF_TRANS_D_S8T1,
340 DDI_BUF_TRANS_D_S8T2,
341 DDI_BUF_TRANS_D_S9T1,
342 DDI_BUF_TRANS_D_S9T2,
343 DDI_BUF_TRANS_E_S0T1,
344 DDI_BUF_TRANS_E_S0T2,
345 DDI_BUF_TRANS_E_S1T1,
346 DDI_BUF_TRANS_E_S1T2,
347 DDI_BUF_TRANS_E_S2T1,
348 DDI_BUF_TRANS_E_S2T2,
349 DDI_BUF_TRANS_E_S3T1,
350 DDI_BUF_TRANS_E_S3T2,
351 DDI_BUF_TRANS_E_S4T1,
352 DDI_BUF_TRANS_E_S4T2,
353 DDI_BUF_TRANS_E_S5T1,
354 DDI_BUF_TRANS_E_S5T2,
355 DDI_BUF_TRANS_E_S6T1,
356 DDI_BUF_TRANS_E_S6T2,
357 DDI_BUF_TRANS_E_S7T1,
358 DDI_BUF_TRANS_E_S7T2,
359 DDI_BUF_TRANS_E_S8T1,
360 DDI_BUF_TRANS_E_S8T2,
361 DDI_BUF_TRANS_E_S9T1,
362 DDI_BUF_TRANS_E_S9T2,
Nico Huber83693c82016-10-08 22:17:55 +0200363 AUD_VID_DID,
364 PFA_WIN_POS,
365 PFA_WIN_SZ,
366 PFA_CTL_1,
367 PS_WIN_POS_1_A,
368 PS_WIN_SZ_1_A,
369 PS_CTRL_1_A,
370 PS_WIN_POS_2_A,
371 PS_WIN_SZ_2_A,
372 PS_CTRL_2_A,
373 PFB_WIN_POS,
374 PFB_WIN_SZ,
375 PFB_CTL_1,
376 PS_WIN_POS_1_B,
377 PS_WIN_SZ_1_B,
378 PS_CTRL_1_B,
379 PS_WIN_POS_2_B,
380 PS_WIN_SZ_2_B,
381 PS_CTRL_2_B,
382 PFC_WIN_POS,
383 PFC_WIN_SZ,
384 PFC_CTL_1,
385 PS_WIN_POS_1_C,
386 PS_WIN_SZ_1_C,
387 PS_CTRL_1_C,
Nico Huberf6266002017-02-03 12:17:28 +0100388 BXT_PORT_CL1CM_DW0_BC,
Nico Huber58afc202017-06-12 21:34:55 +0200389 DISPIO_CR_TX_BMU_CR0,
Nico Huberf6266002017-02-03 12:17:28 +0100390 BXT_PORT_CL1CM_DW9_BC,
391 BXT_PORT_CL1CM_DW10_BC,
Nico Huber4b0239f2017-02-07 18:26:51 +0100392 BXT_PORT_PLL_EBB_0_B,
393 BXT_PORT_PLL_EBB_4_B,
Nico Huber83693c82016-10-08 22:17:55 +0200394 DPLL1_CFGR1,
395 DPLL1_CFGR2,
396 DPLL2_CFGR1,
397 DPLL2_CFGR2,
398 DPLL3_CFGR1,
399 DPLL3_CFGR2,
400 DPLL_CTRL1,
401 DPLL_CTRL2,
402 DPLL_STATUS,
Nico Huberf6266002017-02-03 12:17:28 +0100403 BXT_PORT_CL1CM_DW28_BC,
404 BXT_PORT_CL1CM_DW30_BC,
Nico Huber4b0239f2017-02-07 18:26:51 +0100405 BXT_PORT_PLL_0_B,
406 BXT_PORT_PLL_1_B,
407 BXT_PORT_PLL_2_B,
408 BXT_PORT_PLL_3_B,
409 BXT_PORT_PLL_6_B,
410 BXT_PORT_PLL_8_B,
411 BXT_PORT_PLL_9_B,
412 BXT_PORT_PLL_10_B,
Nico Huberf6266002017-02-03 12:17:28 +0100413 BXT_PORT_REF_DW3_BC,
414 BXT_PORT_REF_DW6_BC,
415 BXT_PORT_REF_DW8_BC,
Nico Huber4b0239f2017-02-07 18:26:51 +0100416 BXT_PORT_PLL_EBB_0_C,
417 BXT_PORT_PLL_EBB_4_C,
Nico Huberf6266002017-02-03 12:17:28 +0100418 BXT_PORT_CL2CM_DW6_BC,
Nico Huber4b0239f2017-02-07 18:26:51 +0100419 BXT_PORT_PLL_0_C,
420 BXT_PORT_PLL_1_C,
421 BXT_PORT_PLL_2_C,
422 BXT_PORT_PLL_3_C,
423 BXT_PORT_PLL_6_C,
424 BXT_PORT_PLL_8_C,
425 BXT_PORT_PLL_9_C,
426 BXT_PORT_PLL_10_C,
Nico Huberfdd93652017-02-08 13:41:38 +0100427 BXT_PORT_PCS_DW10_01_B,
Nico Huber4b0239f2017-02-07 18:26:51 +0100428 BXT_PORT_PCS_DW12_01_B,
Nico Huberfdd93652017-02-08 13:41:38 +0100429 BXT_PORT_TX_DW2_LN0_B,
430 BXT_PORT_TX_DW3_LN0_B,
431 BXT_PORT_TX_DW4_LN0_B,
Nico Huberafadcac2017-02-08 13:41:38 +0100432 BXT_PORT_TX_DW14_LN0_B,
433 BXT_PORT_TX_DW14_LN1_B,
434 BXT_PORT_TX_DW14_LN2_B,
435 BXT_PORT_TX_DW14_LN3_B,
Nico Huberfdd93652017-02-08 13:41:38 +0100436 BXT_PORT_PCS_DW10_01_C,
Nico Huber4b0239f2017-02-07 18:26:51 +0100437 BXT_PORT_PCS_DW12_01_C,
Nico Huberfdd93652017-02-08 13:41:38 +0100438 BXT_PORT_TX_DW2_LN0_C,
439 BXT_PORT_TX_DW3_LN0_C,
440 BXT_PORT_TX_DW4_LN0_C,
Nico Huberafadcac2017-02-08 13:41:38 +0100441 BXT_PORT_TX_DW14_LN0_C,
442 BXT_PORT_TX_DW14_LN1_C,
443 BXT_PORT_TX_DW14_LN2_C,
444 BXT_PORT_TX_DW14_LN3_C,
Nico Huberfdd93652017-02-08 13:41:38 +0100445 BXT_PORT_PCS_DW10_GRP_B,
Nico Huber4b0239f2017-02-07 18:26:51 +0100446 BXT_PORT_PCS_DW12_GRP_B,
Nico Huberfdd93652017-02-08 13:41:38 +0100447 BXT_PORT_TX_DW2_GRP_B,
448 BXT_PORT_TX_DW3_GRP_B,
449 BXT_PORT_TX_DW4_GRP_B,
450 BXT_PORT_PCS_DW10_GRP_C,
Nico Huber4b0239f2017-02-07 18:26:51 +0100451 BXT_PORT_PCS_DW12_GRP_C,
Nico Huberfdd93652017-02-08 13:41:38 +0100452 BXT_PORT_TX_DW2_GRP_C,
453 BXT_PORT_TX_DW3_GRP_C,
454 BXT_PORT_TX_DW4_GRP_C,
Nico Huber40820442017-01-20 14:00:53 +0100455 BXT_DE_PLL_CTL,
Nico Huber83693c82016-10-08 22:17:55 +0200456 HTOTAL_EDP,
457 HBLANK_EDP,
458 HSYNC_EDP,
459 VTOTAL_EDP,
460 VBLANK_EDP,
461 VSYNC_EDP,
462 PIPE_EDP_DATA_M1,
463 PIPE_EDP_DATA_N1,
464 PIPE_EDP_LINK_M1,
465 PIPE_EDP_LINK_N1,
466 PIPE_EDP_DDI_FUNC_CTL,
467 PIPE_EDP_MSA_MISC,
468 SRD_CTL_EDP,
469 SRD_STATUS_EDP,
470 PIPE_SCANLINE_A,
471 PIPEACONF,
472 PIPEAMISC,
473 PIPE_FRMCNT_A,
Arthur Heymans636390c2018-03-28 16:52:13 +0200474 PIPEA_GMCH_DATA_M,
475 PIPEA_GMCH_DATA_N,
476 PIPEA_GMCH_LINK_M,
477 PIPEA_GMCH_LINK_N,
Nico Huber4dc4c612018-01-10 15:55:09 +0100478 CUR_CTL_A,
479 CUR_BASE_A,
480 CUR_POS_A,
481 CUR_FBC_CTL_A,
Nico Huber75a707f2018-06-18 16:28:33 +0200482 CURBCNTR,
483 CURBBASE,
484 CURBPOS,
Nico Huber4dc4c612018-01-10 15:55:09 +0100485 CUR_WM_A_0,
486 CUR_WM_A_1,
487 CUR_WM_A_2,
488 CUR_WM_A_3,
489 CUR_WM_A_4,
490 CUR_WM_A_5,
491 CUR_WM_A_6,
492 CUR_WM_A_7,
493 CUR_BUF_CFG_A,
Nico Huber83693c82016-10-08 22:17:55 +0200494 DSPACNTR,
495 DSPALINOFF,
496 DSPASTRIDE,
497 PLANE_POS_1_A,
498 PLANE_SIZE_1_A,
499 DSPASURF,
500 DSPATILEOFF,
501 PLANE_WM_1_A_0,
502 PLANE_WM_1_A_1,
503 PLANE_WM_1_A_2,
504 PLANE_WM_1_A_3,
505 PLANE_WM_1_A_4,
506 PLANE_WM_1_A_5,
507 PLANE_WM_1_A_6,
508 PLANE_WM_1_A_7,
509 PLANE_BUF_CFG_1_A,
510 SPACNTR,
511 PIPE_SCANLINE_B,
512 PIPEBCONF,
513 PIPEBMISC,
514 PIPE_FRMCNT_B,
Arthur Heymans636390c2018-03-28 16:52:13 +0200515 PIPEB_GMCH_DATA_M,
516 PIPEB_GMCH_DATA_N,
517 PIPEB_GMCH_LINK_M,
518 PIPEB_GMCH_LINK_N,
Nico Huber4dc4c612018-01-10 15:55:09 +0100519 CUR_CTL_B,
520 CUR_BASE_B,
521 CUR_POS_B,
522 CUR_FBC_CTL_B,
523 CUR_WM_B_0,
524 CUR_WM_B_1,
525 CUR_WM_B_2,
526 CUR_WM_B_3,
527 CUR_WM_B_4,
528 CUR_WM_B_5,
529 CUR_WM_B_6,
530 CUR_WM_B_7,
531 CUR_BUF_CFG_B,
Nico Huber83693c82016-10-08 22:17:55 +0200532 DSPBCNTR,
533 DSPBLINOFF,
534 DSPBSTRIDE,
535 PLANE_POS_1_B,
536 PLANE_SIZE_1_B,
537 DSPBSURF,
538 DSPBTILEOFF,
539 PLANE_WM_1_B_0,
540 PLANE_WM_1_B_1,
541 PLANE_WM_1_B_2,
542 PLANE_WM_1_B_3,
543 PLANE_WM_1_B_4,
544 PLANE_WM_1_B_5,
545 PLANE_WM_1_B_6,
546 PLANE_WM_1_B_7,
547 PLANE_BUF_CFG_1_B,
548 SPBCNTR,
Arthur Heymansdfcdd772018-03-28 16:42:50 +0200549 GMCH_VGACNTRL,
Nico Huber83693c82016-10-08 22:17:55 +0200550 PIPE_SCANLINE_C,
551 PIPECCONF,
552 PIPECMISC,
553 PIPE_FRMCNT_C,
Nico Huber4dc4c612018-01-10 15:55:09 +0100554 CUR_CTL_C,
555 CUR_BASE_C,
556 CUR_POS_C,
557 CUR_FBC_CTL_C,
558 CUR_WM_C_0,
559 CUR_WM_C_1,
560 CUR_WM_C_2,
561 CUR_WM_C_3,
562 CUR_WM_C_4,
563 CUR_WM_C_5,
564 CUR_WM_C_6,
565 CUR_WM_C_7,
566 CUR_BUF_CFG_C,
Nico Huber83693c82016-10-08 22:17:55 +0200567 DSPCCNTR,
568 DSPCLINOFF,
569 DSPCSTRIDE,
570 PLANE_POS_1_C,
571 PLANE_SIZE_1_C,
572 DSPCSURF,
573 DSPCTILEOFF,
574 PLANE_WM_1_C_0,
575 PLANE_WM_1_C_1,
576 PLANE_WM_1_C_2,
577 PLANE_WM_1_C_3,
578 PLANE_WM_1_C_4,
579 PLANE_WM_1_C_5,
580 PLANE_WM_1_C_6,
581 PLANE_WM_1_C_7,
582 PLANE_BUF_CFG_1_C,
583 SPCCNTR,
584 PIPE_EDP_CONF,
585 PCH_FDI_CHICKEN_B_C,
586 QUIRK_C2004,
587 SFUSE_STRAP,
588 PCH_DSPCLK_GATE_D,
589 SDEISR,
590 SDEIMR,
591 SDEIIR,
592 SDEIER,
593 SHOTPLUG_CTL,
594 PCH_GMBUS0,
595 PCH_GMBUS1,
596 PCH_GMBUS2,
597 PCH_GMBUS3,
598 PCH_GMBUS4,
599 PCH_GMBUS5,
600 SBI_ADDR,
601 SBI_DATA,
602 SBI_CTL_STAT,
603 PCH_DPLL_A,
604 PCH_DPLL_B,
605 PCH_PIXCLK_GATE,
606 PCH_FPA0,
607 PCH_FPA1,
608 PCH_FPB0,
609 PCH_FPB1,
610 PCH_DREF_CONTROL,
Nico Huberf54d0962016-10-20 14:17:18 +0200611 PCH_RAWCLK_FREQ,
Nico Huber83693c82016-10-08 22:17:55 +0200612 PCH_DPLL_SEL,
613 PCH_PP_STATUS,
614 PCH_PP_CONTROL,
615 PCH_PP_ON_DELAYS,
616 PCH_PP_OFF_DELAYS,
617 PCH_PP_DIVISOR,
Nico Huber7050d2d2020-01-08 13:25:41 +0100618 BXT_PP_STATUS_2,
619 BXT_PP_CONTROL_2,
620 BXT_PP_ON_DELAYS_2,
621 BXT_PP_OFF_DELAYS_2,
Nico Huber83693c82016-10-08 22:17:55 +0200622 BLC_PWM_PCH_CTL1,
623 BLC_PWM_PCH_CTL2,
Nico Huber7050d2d2020-01-08 13:25:41 +0100624 BXT_BLC_PWM_DUTY_1,
625 BXT_BLC_PWM_CTL_2,
626 BXT_BLC_PWM_FREQ_2,
627 BXT_BLC_PWM_DUTY_2,
Nico Huber83693c82016-10-08 22:17:55 +0200628 TRANS_HTOTAL_A,
629 TRANS_HBLANK_A,
630 TRANS_HSYNC_A,
631 TRANS_VTOTAL_A,
632 TRANS_VBLANK_A,
633 TRANS_VSYNC_A,
634 TRANS_VSYNCSHIFT_A,
635 TRANSA_DATA_M1,
636 TRANSA_DATA_N1,
637 TRANSA_DP_LINK_M1,
638 TRANSA_DP_LINK_N1,
639 TRANS_DP_CTL_A,
640 TRANS_HTOTAL_B,
641 TRANS_HBLANK_B,
642 TRANS_HSYNC_B,
643 TRANS_VTOTAL_B,
644 TRANS_VBLANK_B,
645 TRANS_VSYNC_B,
646 TRANS_VSYNCSHIFT_B,
647 TRANSB_DATA_M1,
648 TRANSB_DATA_N1,
649 TRANSB_DP_LINK_M1,
650 TRANSB_DP_LINK_N1,
651 PCH_ADPA,
652 PCH_HDMIB,
653 PCH_HDMIC,
654 PCH_HDMID,
655 PCH_LVDS,
656 TRANS_DP_CTL_B,
657 TRANS_HTOTAL_C,
658 TRANS_HBLANK_C,
659 TRANS_HSYNC_C,
660 TRANS_VTOTAL_C,
661 TRANS_VBLANK_C,
662 TRANS_VSYNC_C,
663 TRANS_VSYNCSHIFT_C,
664 TRANSC_DATA_M1,
665 TRANSC_DATA_N1,
666 TRANSC_DP_LINK_M1,
667 TRANSC_DP_LINK_N1,
668 TRANS_DP_CTL_C,
669 PCH_DP_B,
670 PCH_DP_AUX_CTL_B,
671 PCH_DP_AUX_DATA_B_1,
672 PCH_DP_AUX_DATA_B_2,
673 PCH_DP_AUX_DATA_B_3,
674 PCH_DP_AUX_DATA_B_4,
675 PCH_DP_AUX_DATA_B_5,
676 PCH_DP_C,
677 PCH_DP_AUX_CTL_C,
678 PCH_DP_AUX_DATA_C_1,
679 PCH_DP_AUX_DATA_C_2,
680 PCH_DP_AUX_DATA_C_3,
681 PCH_DP_AUX_DATA_C_4,
682 PCH_DP_AUX_DATA_C_5,
683 PCH_DP_D,
684 PCH_DP_AUX_CTL_D,
685 PCH_DP_AUX_DATA_D_1,
686 PCH_DP_AUX_DATA_D_2,
687 PCH_DP_AUX_DATA_D_3,
688 PCH_DP_AUX_DATA_D_4,
689 PCH_DP_AUX_DATA_D_5,
690 AUD_CONFIG_A,
691 PCH_AUD_VID_DID,
692 AUD_HDMIW_HDMIEDID_A,
693 AUD_CNTL_ST_A,
694 AUD_CNTRL_ST2,
695 AUD_CONFIG_B,
696 AUD_HDMIW_HDMIEDID_B,
697 AUD_CNTL_ST_B,
698 AUD_CONFIG_C,
699 AUD_HDMIW_HDMIEDID_C,
700 AUD_CNTL_ST_C,
701 TRANSACONF,
702 FDI_RXA_CTL,
703 FDI_RX_MISC_A,
704 FDI_RXA_IIR,
705 FDI_RXA_IMR,
706 FDI_RXA_TUSIZE1,
707 QUIRK_F0060,
708 TRANSA_CHICKEN2,
709 TRANSBCONF,
710 FDI_RXB_CTL,
711 FDI_RX_MISC_B,
712 FDI_RXB_IIR,
713 FDI_RXB_IMR,
714 FDI_RXB_TUSIZE1,
715 QUIRK_F1060,
716 TRANSB_CHICKEN2,
717 TRANSCCONF,
718 FDI_RXC_CTL,
719 FDI_RX_MISC_C,
720 FDI_RXC_IIR,
721 FDI_RXC_IMR,
722 FDI_RXC_TUSIZE1,
723 QUIRK_F2060,
724 TRANSC_CHICKEN2,
Nico Huberd0f84b92019-09-22 21:31:52 +0200725 LCPLL_CTL,
Nico Huberf6266002017-02-03 12:17:28 +0100726 BXT_P_CR_GT_DISP_PWRON,
Nico Huber83693c82016-10-08 22:17:55 +0200727 GT_MAILBOX,
728 GT_MAILBOX_DATA,
Nico Huberf6266002017-02-03 12:17:28 +0100729 GT_MAILBOX_DATA_1,
730 BXT_PORT_CL1CM_DW0_A,
731 BXT_PORT_CL1CM_DW9_A,
732 BXT_PORT_CL1CM_DW10_A,
Nico Huber4b0239f2017-02-07 18:26:51 +0100733 BXT_PORT_PLL_EBB_0_A,
734 BXT_PORT_PLL_EBB_4_A,
Nico Huberf6266002017-02-03 12:17:28 +0100735 BXT_PORT_CL1CM_DW28_A,
736 BXT_PORT_CL1CM_DW30_A,
Nico Huber4b0239f2017-02-07 18:26:51 +0100737 BXT_PORT_PLL_0_A,
738 BXT_PORT_PLL_1_A,
739 BXT_PORT_PLL_2_A,
740 BXT_PORT_PLL_3_A,
741 BXT_PORT_PLL_6_A,
742 BXT_PORT_PLL_8_A,
743 BXT_PORT_PLL_9_A,
744 BXT_PORT_PLL_10_A,
Nico Huberf6266002017-02-03 12:17:28 +0100745 BXT_PORT_REF_DW3_A,
746 BXT_PORT_REF_DW6_A,
Nico Huber4b0239f2017-02-07 18:26:51 +0100747 BXT_PORT_REF_DW8_A,
Nico Huberfdd93652017-02-08 13:41:38 +0100748 BXT_PORT_PCS_DW10_01_A,
Nico Huber4b0239f2017-02-07 18:26:51 +0100749 BXT_PORT_PCS_DW12_01_A,
Nico Huberfdd93652017-02-08 13:41:38 +0100750 BXT_PORT_TX_DW2_LN0_A,
751 BXT_PORT_TX_DW3_LN0_A,
752 BXT_PORT_TX_DW4_LN0_A,
Nico Huberafadcac2017-02-08 13:41:38 +0100753 BXT_PORT_TX_DW14_LN0_A,
754 BXT_PORT_TX_DW14_LN1_A,
755 BXT_PORT_TX_DW14_LN2_A,
756 BXT_PORT_TX_DW14_LN3_A,
Nico Huberfdd93652017-02-08 13:41:38 +0100757 BXT_PORT_PCS_DW10_GRP_A,
758 BXT_PORT_PCS_DW12_GRP_A,
759 BXT_PORT_TX_DW2_GRP_A,
760 BXT_PORT_TX_DW3_GRP_A,
761 BXT_PORT_TX_DW4_GRP_A);
Nico Huber83693c82016-10-08 22:17:55 +0200762
763 pragma Warnings
764 (GNATprove, Off, "pragma ""KEEP_NAMES"" ignored *(not yet supported)",
765 Reason => "TODO: Should it matter?");
766 pragma Keep_Names (Registers_Invalid_Index);
767 pragma Warnings
768 (GNATprove, On, "pragma ""KEEP_NAMES"" ignored *(not yet supported)");
769
770 Register_Width : constant := 4;
771
772 for Registers_Invalid_Index use
773 (Invalid_Register => 0,
774
775 ---------------------------------------------------------------------------
776 -- Pipe A registers
777 ---------------------------------------------------------------------------
778
779 -- pipe timing registers
780
781 HTOTAL_A => 16#06_0000# / Register_Width,
782 HBLANK_A => 16#06_0004# / Register_Width,
783 HSYNC_A => 16#06_0008# / Register_Width,
784 VTOTAL_A => 16#06_000c# / Register_Width,
785 VBLANK_A => 16#06_0010# / Register_Width,
786 VSYNC_A => 16#06_0014# / Register_Width,
787 PIPEASRC => 16#06_001c# / Register_Width,
788 PIPEACONF => 16#07_0008# / Register_Width,
789 PIPEAMISC => 16#07_0030# / Register_Width,
790 TRANS_HTOTAL_A => 16#0e_0000# / Register_Width,
791 TRANS_HBLANK_A => 16#0e_0004# / Register_Width,
792 TRANS_HSYNC_A => 16#0e_0008# / Register_Width,
793 TRANS_VTOTAL_A => 16#0e_000c# / Register_Width,
794 TRANS_VBLANK_A => 16#0e_0010# / Register_Width,
795 TRANS_VSYNC_A => 16#0e_0014# / Register_Width,
796 TRANSA_DATA_M1 => 16#0e_0030# / Register_Width,
797 TRANSA_DATA_N1 => 16#0e_0034# / Register_Width,
798 TRANSA_DP_LINK_M1 => 16#0e_0040# / Register_Width,
799 TRANSA_DP_LINK_N1 => 16#0e_0044# / Register_Width,
800 PIPEA_DATA_M1 => 16#06_0030# / Register_Width,
801 PIPEA_DATA_N1 => 16#06_0034# / Register_Width,
802 PIPEA_LINK_M1 => 16#06_0040# / Register_Width,
803 PIPEA_LINK_N1 => 16#06_0044# / Register_Width,
Arthur Heymans636390c2018-03-28 16:52:13 +0200804 PIPEA_GMCH_DATA_M => 16#07_0050# / Register_Width,
805 PIPEA_GMCH_DATA_N => 16#07_0054# / Register_Width,
806 PIPEA_GMCH_LINK_M => 16#07_0060# / Register_Width,
807 PIPEA_GMCH_LINK_N => 16#07_0064# / Register_Width,
Nico Huber83693c82016-10-08 22:17:55 +0200808 PIPEA_DDI_FUNC_CTL => 16#06_0400# / Register_Width,
809 PIPEA_MSA_MISC => 16#06_0410# / Register_Width,
810
811 -- PCH sideband interface registers
812 SBI_ADDR => 16#0c_6000# / Register_Width,
813 SBI_DATA => 16#0c_6004# / Register_Width,
814 SBI_CTL_STAT => 16#0c_6008# / Register_Width,
815
Arthur Heymans73ea0322018-03-28 17:17:07 +0200816 -- GMCH clock registers
817 GMCH_DPLL_A => 16#00_6014# / Register_Width,
818 GMCH_FPA0 => 16#00_6040# / Register_Width,
819 GMCH_FPA1 => 16#00_6044# / Register_Width,
820
821 -- PCH clock registers
Nico Huber83693c82016-10-08 22:17:55 +0200822 PCH_DPLL_A => 16#0c_6014# / Register_Width,
823 PCH_PIXCLK_GATE => 16#0c_6020# / Register_Width,
824 PCH_FPA0 => 16#0c_6040# / Register_Width,
825 PCH_FPA1 => 16#0c_6044# / Register_Width,
826
827 -- panel fitter
828 PFA_CTL_1 => 16#06_8080# / Register_Width,
829 PFA_WIN_POS => 16#06_8070# / Register_Width,
830 PFA_WIN_SZ => 16#06_8074# / Register_Width,
831 PS_WIN_POS_1_A => 16#06_8170# / Register_Width,
832 PS_WIN_SZ_1_A => 16#06_8174# / Register_Width,
833 PS_CTRL_1_A => 16#06_8180# / Register_Width,
834 PS_WIN_POS_2_A => 16#06_8270# / Register_Width,
835 PS_WIN_SZ_2_A => 16#06_8274# / Register_Width,
836 PS_CTRL_2_A => 16#06_8280# / Register_Width,
837
Nico Huber4dc4c612018-01-10 15:55:09 +0100838 -- cursor control
839 CUR_CTL_A => 16#07_0080# / Register_Width,
840 CUR_BASE_A => 16#07_0084# / Register_Width,
841 CUR_POS_A => 16#07_0088# / Register_Width,
842 CUR_FBC_CTL_A => 16#07_00a0# / Register_Width,
843
Nico Huber83693c82016-10-08 22:17:55 +0200844 -- display control
845 DSPACNTR => 16#07_0180# / Register_Width,
846 DSPALINOFF => 16#07_0184# / Register_Width,
847 DSPASTRIDE => 16#07_0188# / Register_Width,
848 PLANE_POS_1_A => 16#07_018c# / Register_Width,
849 PLANE_SIZE_1_A => 16#07_0190# / Register_Width,
850 DSPASURF => 16#07_019c# / Register_Width,
851 DSPATILEOFF => 16#07_01a4# / Register_Width,
852
853 -- sprite control
854 SPACNTR => 16#07_0280# / Register_Width,
855
856 -- FDI and PCH transcoder control
857 FDI_TX_CTL_A => 16#06_0100# / Register_Width,
858 FDI_RXA_CTL => 16#0f_000c# / Register_Width,
859 FDI_RX_MISC_A => 16#0f_0010# / Register_Width,
860 FDI_RXA_IIR => 16#0f_0014# / Register_Width,
861 FDI_RXA_IMR => 16#0f_0018# / Register_Width,
862 FDI_RXA_TUSIZE1 => 16#0f_0030# / Register_Width,
863 TRANSACONF => 16#0f_0008# / Register_Width,
864 TRANSA_CHICKEN2 => 16#0f_0064# / Register_Width,
865
866 -- watermark registers
867 WM_LINETIME_A => 16#04_5270# / Register_Width,
868 PLANE_WM_1_A_0 => 16#07_0240# / Register_Width,
869 PLANE_WM_1_A_1 => 16#07_0244# / Register_Width,
870 PLANE_WM_1_A_2 => 16#07_0248# / Register_Width,
871 PLANE_WM_1_A_3 => 16#07_024c# / Register_Width,
872 PLANE_WM_1_A_4 => 16#07_0250# / Register_Width,
873 PLANE_WM_1_A_5 => 16#07_0254# / Register_Width,
874 PLANE_WM_1_A_6 => 16#07_0258# / Register_Width,
875 PLANE_WM_1_A_7 => 16#07_025c# / Register_Width,
876 PLANE_BUF_CFG_1_A => 16#07_027c# / Register_Width,
Nico Huber4dc4c612018-01-10 15:55:09 +0100877 CUR_WM_A_0 => 16#07_0140# / Register_Width,
878 CUR_WM_A_1 => 16#07_0144# / Register_Width,
879 CUR_WM_A_2 => 16#07_0148# / Register_Width,
880 CUR_WM_A_3 => 16#07_014c# / Register_Width,
881 CUR_WM_A_4 => 16#07_0150# / Register_Width,
882 CUR_WM_A_5 => 16#07_0154# / Register_Width,
883 CUR_WM_A_6 => 16#07_0158# / Register_Width,
884 CUR_WM_A_7 => 16#07_015c# / Register_Width,
885 CUR_BUF_CFG_A => 16#07_017c# / Register_Width,
Nico Huber83693c82016-10-08 22:17:55 +0200886
887 -- CPU transcoder clock select
888 TRANSA_CLK_SEL => 16#04_6140# / Register_Width,
889
890 ---------------------------------------------------------------------------
891 -- Pipe B registers
892 ---------------------------------------------------------------------------
893
894 -- pipe timing registers
895
896 HTOTAL_B => 16#06_1000# / Register_Width,
897 HBLANK_B => 16#06_1004# / Register_Width,
898 HSYNC_B => 16#06_1008# / Register_Width,
899 VTOTAL_B => 16#06_100c# / Register_Width,
900 VBLANK_B => 16#06_1010# / Register_Width,
901 VSYNC_B => 16#06_1014# / Register_Width,
902 PIPEBSRC => 16#06_101c# / Register_Width,
903 PIPEBCONF => 16#07_1008# / Register_Width,
904 PIPEBMISC => 16#07_1030# / Register_Width,
905 TRANS_HTOTAL_B => 16#0e_1000# / Register_Width,
906 TRANS_HBLANK_B => 16#0e_1004# / Register_Width,
907 TRANS_HSYNC_B => 16#0e_1008# / Register_Width,
908 TRANS_VTOTAL_B => 16#0e_100c# / Register_Width,
909 TRANS_VBLANK_B => 16#0e_1010# / Register_Width,
910 TRANS_VSYNC_B => 16#0e_1014# / Register_Width,
911 TRANSB_DATA_M1 => 16#0e_1030# / Register_Width,
912 TRANSB_DATA_N1 => 16#0e_1034# / Register_Width,
913 TRANSB_DP_LINK_M1 => 16#0e_1040# / Register_Width,
914 TRANSB_DP_LINK_N1 => 16#0e_1044# / Register_Width,
915 PIPEB_DATA_M1 => 16#06_1030# / Register_Width,
916 PIPEB_DATA_N1 => 16#06_1034# / Register_Width,
917 PIPEB_LINK_M1 => 16#06_1040# / Register_Width,
918 PIPEB_LINK_N1 => 16#06_1044# / Register_Width,
Arthur Heymans636390c2018-03-28 16:52:13 +0200919 PIPEB_GMCH_DATA_M => 16#07_1050# / Register_Width,
920 PIPEB_GMCH_DATA_N => 16#07_1054# / Register_Width,
921 PIPEB_GMCH_LINK_M => 16#07_1060# / Register_Width,
922 PIPEB_GMCH_LINK_N => 16#07_1064# / Register_Width,
Nico Huber83693c82016-10-08 22:17:55 +0200923 PIPEB_DDI_FUNC_CTL => 16#06_1400# / Register_Width,
924 PIPEB_MSA_MISC => 16#06_1410# / Register_Width,
925
Arthur Heymans73ea0322018-03-28 17:17:07 +0200926 -- GMCH clock registers
927 GMCH_DPLL_B => 16#00_6018# / Register_Width,
928 GMCH_FPB0 => 16#00_6048# / Register_Width,
929 GMCH_FPB1 => 16#00_604c# / Register_Width,
930
931 -- PCH clock registers
Nico Huber83693c82016-10-08 22:17:55 +0200932 PCH_DPLL_B => 16#0c_6018# / Register_Width,
933 PCH_FPB0 => 16#0c_6048# / Register_Width,
934 PCH_FPB1 => 16#0c_604c# / Register_Width,
935
936 -- panel fitter
937 PFB_CTL_1 => 16#06_8880# / Register_Width,
938 PFB_WIN_POS => 16#06_8870# / Register_Width,
939 PFB_WIN_SZ => 16#06_8874# / Register_Width,
940 PS_WIN_POS_1_B => 16#06_8970# / Register_Width,
941 PS_WIN_SZ_1_B => 16#06_8974# / Register_Width,
942 PS_CTRL_1_B => 16#06_8980# / Register_Width,
943 PS_WIN_POS_2_B => 16#06_8a70# / Register_Width,
944 PS_WIN_SZ_2_B => 16#06_8a74# / Register_Width,
945 PS_CTRL_2_B => 16#06_8a80# / Register_Width,
946
Nico Huber4dc4c612018-01-10 15:55:09 +0100947 -- cursor control
Nico Huber75a707f2018-06-18 16:28:33 +0200948 CURBCNTR => 16#07_00c0# / Register_Width, -- <= SNB
949 CURBBASE => 16#07_00c4# / Register_Width, -- <= SNB
950 CURBPOS => 16#07_00c8# / Register_Width, -- <= SNB
Nico Huber4dc4c612018-01-10 15:55:09 +0100951 CUR_CTL_B => 16#07_1080# / Register_Width,
952 CUR_BASE_B => 16#07_1084# / Register_Width,
953 CUR_POS_B => 16#07_1088# / Register_Width,
954 CUR_FBC_CTL_B => 16#07_10a0# / Register_Width,
955
Nico Huber83693c82016-10-08 22:17:55 +0200956 -- display control
957 DSPBCNTR => 16#07_1180# / Register_Width,
958 DSPBLINOFF => 16#07_1184# / Register_Width,
959 DSPBSTRIDE => 16#07_1188# / Register_Width,
960 PLANE_POS_1_B => 16#07_118c# / Register_Width,
961 PLANE_SIZE_1_B => 16#07_1190# / Register_Width,
962 DSPBSURF => 16#07_119c# / Register_Width,
963 DSPBTILEOFF => 16#07_11a4# / Register_Width,
964
965 -- sprite control
966 SPBCNTR => 16#07_1280# / Register_Width,
967
968 -- FDI and PCH transcoder control
Arthur Heymans73ea0322018-03-28 17:17:07 +0200969 FDI_TX_CTL_B => 16#06_1100# / Register_Width, -- aliased by GMCH_ADPA
Nico Huber83693c82016-10-08 22:17:55 +0200970 FDI_RXB_CTL => 16#0f_100c# / Register_Width,
971 FDI_RX_MISC_B => 16#0f_1010# / Register_Width,
972 FDI_RXB_IIR => 16#0f_1014# / Register_Width,
973 FDI_RXB_IMR => 16#0f_1018# / Register_Width,
974 FDI_RXB_TUSIZE1 => 16#0f_1030# / Register_Width,
975 TRANSBCONF => 16#0f_1008# / Register_Width,
976 TRANSB_CHICKEN2 => 16#0f_1064# / Register_Width,
977
978 -- watermark registers
979 WM_LINETIME_B => 16#04_5274# / Register_Width,
980 PLANE_WM_1_B_0 => 16#07_1240# / Register_Width,
981 PLANE_WM_1_B_1 => 16#07_1244# / Register_Width,
982 PLANE_WM_1_B_2 => 16#07_1248# / Register_Width,
983 PLANE_WM_1_B_3 => 16#07_124c# / Register_Width,
984 PLANE_WM_1_B_4 => 16#07_1250# / Register_Width,
985 PLANE_WM_1_B_5 => 16#07_1254# / Register_Width,
986 PLANE_WM_1_B_6 => 16#07_1258# / Register_Width,
987 PLANE_WM_1_B_7 => 16#07_125c# / Register_Width,
988 PLANE_BUF_CFG_1_B => 16#07_127c# / Register_Width,
Nico Huber4dc4c612018-01-10 15:55:09 +0100989 CUR_WM_B_0 => 16#07_1140# / Register_Width,
990 CUR_WM_B_1 => 16#07_1144# / Register_Width,
991 CUR_WM_B_2 => 16#07_1148# / Register_Width,
992 CUR_WM_B_3 => 16#07_114c# / Register_Width,
993 CUR_WM_B_4 => 16#07_1150# / Register_Width,
994 CUR_WM_B_5 => 16#07_1154# / Register_Width,
995 CUR_WM_B_6 => 16#07_1158# / Register_Width,
996 CUR_WM_B_7 => 16#07_115c# / Register_Width,
997 CUR_BUF_CFG_B => 16#07_117c# / Register_Width,
Nico Huber83693c82016-10-08 22:17:55 +0200998
999 -- CPU transcoder clock select
1000 TRANSB_CLK_SEL => 16#04_6144# / Register_Width,
1001
1002 ---------------------------------------------------------------------------
1003 -- Pipe C registers
1004 ---------------------------------------------------------------------------
1005
1006 -- pipe timing registers
1007
1008 HTOTAL_C => 16#06_2000# / Register_Width,
1009 HBLANK_C => 16#06_2004# / Register_Width,
1010 HSYNC_C => 16#06_2008# / Register_Width,
1011 VTOTAL_C => 16#06_200c# / Register_Width,
1012 VBLANK_C => 16#06_2010# / Register_Width,
1013 VSYNC_C => 16#06_2014# / Register_Width,
1014 PIPECSRC => 16#06_201c# / Register_Width,
1015 PIPECCONF => 16#07_2008# / Register_Width,
1016 PIPECMISC => 16#07_2030# / Register_Width,
1017 TRANS_HTOTAL_C => 16#0e_2000# / Register_Width,
1018 TRANS_HBLANK_C => 16#0e_2004# / Register_Width,
1019 TRANS_HSYNC_C => 16#0e_2008# / Register_Width,
1020 TRANS_VTOTAL_C => 16#0e_200c# / Register_Width,
1021 TRANS_VBLANK_C => 16#0e_2010# / Register_Width,
1022 TRANS_VSYNC_C => 16#0e_2014# / Register_Width,
1023 TRANSC_DATA_M1 => 16#0e_2030# / Register_Width,
1024 TRANSC_DATA_N1 => 16#0e_2034# / Register_Width,
1025 TRANSC_DP_LINK_M1 => 16#0e_2040# / Register_Width,
1026 TRANSC_DP_LINK_N1 => 16#0e_2044# / Register_Width,
1027 PIPEC_DATA_M1 => 16#06_2030# / Register_Width,
1028 PIPEC_DATA_N1 => 16#06_2034# / Register_Width,
1029 PIPEC_LINK_M1 => 16#06_2040# / Register_Width,
1030 PIPEC_LINK_N1 => 16#06_2044# / Register_Width,
1031 PIPEC_DDI_FUNC_CTL => 16#06_2400# / Register_Width,
1032 PIPEC_MSA_MISC => 16#06_2410# / Register_Width,
1033
1034 -- panel fitter
1035 PFC_CTL_1 => 16#06_9080# / Register_Width,
1036 PFC_WIN_POS => 16#06_9070# / Register_Width,
1037 PFC_WIN_SZ => 16#06_9074# / Register_Width,
1038 PS_WIN_POS_1_C => 16#06_9170# / Register_Width,
1039 PS_WIN_SZ_1_C => 16#06_9174# / Register_Width,
1040 PS_CTRL_1_C => 16#06_9180# / Register_Width,
1041
Nico Huber4dc4c612018-01-10 15:55:09 +01001042 -- cursor control
1043 CUR_CTL_C => 16#07_2080# / Register_Width,
1044 CUR_BASE_C => 16#07_2084# / Register_Width,
1045 CUR_POS_C => 16#07_2088# / Register_Width,
1046 CUR_FBC_CTL_C => 16#07_20a0# / Register_Width,
1047
Nico Huber83693c82016-10-08 22:17:55 +02001048 -- display control
1049 DSPCCNTR => 16#07_2180# / Register_Width,
1050 DSPCLINOFF => 16#07_2184# / Register_Width,
1051 DSPCSTRIDE => 16#07_2188# / Register_Width,
1052 PLANE_POS_1_C => 16#07_218c# / Register_Width,
1053 PLANE_SIZE_1_C => 16#07_2190# / Register_Width,
1054 DSPCSURF => 16#07_219c# / Register_Width,
1055 DSPCTILEOFF => 16#07_21a4# / Register_Width,
1056
1057 -- sprite control
1058 SPCCNTR => 16#07_2280# / Register_Width,
1059
1060 -- PCH transcoder control
1061 FDI_TX_CTL_C => 16#06_2100# / Register_Width,
1062 FDI_RXC_CTL => 16#0f_200c# / Register_Width,
1063 FDI_RX_MISC_C => 16#0f_2010# / Register_Width,
1064 FDI_RXC_IIR => 16#0f_2014# / Register_Width,
1065 FDI_RXC_IMR => 16#0f_2018# / Register_Width,
1066 FDI_RXC_TUSIZE1 => 16#0f_2030# / Register_Width,
1067 TRANSCCONF => 16#0f_2008# / Register_Width,
1068 TRANSC_CHICKEN2 => 16#0f_2064# / Register_Width,
1069
1070 -- watermark registers
1071 WM_LINETIME_C => 16#04_5278# / Register_Width,
1072 PLANE_WM_1_C_0 => 16#07_2240# / Register_Width,
1073 PLANE_WM_1_C_1 => 16#07_2244# / Register_Width,
1074 PLANE_WM_1_C_2 => 16#07_2248# / Register_Width,
1075 PLANE_WM_1_C_3 => 16#07_224c# / Register_Width,
1076 PLANE_WM_1_C_4 => 16#07_2250# / Register_Width,
1077 PLANE_WM_1_C_5 => 16#07_2254# / Register_Width,
1078 PLANE_WM_1_C_6 => 16#07_2258# / Register_Width,
1079 PLANE_WM_1_C_7 => 16#07_225c# / Register_Width,
1080 PLANE_BUF_CFG_1_C => 16#07_227c# / Register_Width,
Nico Huber4dc4c612018-01-10 15:55:09 +01001081 CUR_WM_C_0 => 16#07_2140# / Register_Width,
1082 CUR_WM_C_1 => 16#07_2144# / Register_Width,
1083 CUR_WM_C_2 => 16#07_2148# / Register_Width,
1084 CUR_WM_C_3 => 16#07_214c# / Register_Width,
1085 CUR_WM_C_4 => 16#07_2150# / Register_Width,
1086 CUR_WM_C_5 => 16#07_2154# / Register_Width,
1087 CUR_WM_C_6 => 16#07_2158# / Register_Width,
1088 CUR_WM_C_7 => 16#07_215c# / Register_Width,
1089 CUR_BUF_CFG_C => 16#07_217c# / Register_Width,
Nico Huber83693c82016-10-08 22:17:55 +02001090
1091 -- CPU transcoder clock select
1092 TRANSC_CLK_SEL => 16#04_6148# / Register_Width,
1093
1094 ---------------------------------------------------------------------------
1095 -- Pipe EDP registers
1096 ---------------------------------------------------------------------------
1097
1098 -- pipe timing registers
1099
1100 HTOTAL_EDP => 16#06_f000# / Register_Width,
1101 HBLANK_EDP => 16#06_f004# / Register_Width,
1102 HSYNC_EDP => 16#06_f008# / Register_Width,
1103 VTOTAL_EDP => 16#06_f00c# / Register_Width,
1104 VBLANK_EDP => 16#06_f010# / Register_Width,
1105 VSYNC_EDP => 16#06_f014# / Register_Width,
1106 PIPE_EDP_CONF => 16#07_f008# / Register_Width,
1107 PIPE_EDP_DATA_M1 => 16#06_f030# / Register_Width,
1108 PIPE_EDP_DATA_N1 => 16#06_f034# / Register_Width,
1109 PIPE_EDP_LINK_M1 => 16#06_f040# / Register_Width,
1110 PIPE_EDP_LINK_N1 => 16#06_f044# / Register_Width,
1111 PIPE_EDP_DDI_FUNC_CTL => 16#06_f400# / Register_Width,
1112 PIPE_EDP_MSA_MISC => 16#06_f410# / Register_Width,
1113
1114 -- PSR registers
1115 SRD_CTL => 16#06_4800# / Register_Width,
1116 SRD_CTL_A => 16#06_0800# / Register_Width,
1117 SRD_CTL_B => 16#06_1800# / Register_Width,
1118 SRD_CTL_C => 16#06_2800# / Register_Width,
1119 SRD_CTL_EDP => 16#06_f800# / Register_Width,
1120 SRD_STATUS => 16#06_4840# / Register_Width,
1121 SRD_STATUS_A => 16#06_0840# / Register_Width,
1122 SRD_STATUS_B => 16#06_1840# / Register_Width,
1123 SRD_STATUS_C => 16#06_2840# / Register_Width,
1124 SRD_STATUS_EDP => 16#06_f840# / Register_Width,
1125
1126 -- DDI registers
1127 DDI_BUF_CTL_A => 16#06_4000# / Register_Width, -- aliased by DP_CTL_A
Nico Huber01b680f2017-06-09 16:24:22 +02001128 DDI_BUF_TRANS_A_S0T1 => 16#06_4e00# / Register_Width,
1129 DDI_BUF_TRANS_A_S0T2 => 16#06_4e04# / Register_Width,
1130 DDI_BUF_TRANS_A_S1T1 => 16#06_4e08# / Register_Width,
1131 DDI_BUF_TRANS_A_S1T2 => 16#06_4e0c# / Register_Width,
1132 DDI_BUF_TRANS_A_S2T1 => 16#06_4e10# / Register_Width,
1133 DDI_BUF_TRANS_A_S2T2 => 16#06_4e14# / Register_Width,
1134 DDI_BUF_TRANS_A_S3T1 => 16#06_4e18# / Register_Width,
1135 DDI_BUF_TRANS_A_S3T2 => 16#06_4e1c# / Register_Width,
1136 DDI_BUF_TRANS_A_S4T1 => 16#06_4e20# / Register_Width,
1137 DDI_BUF_TRANS_A_S4T2 => 16#06_4e24# / Register_Width,
1138 DDI_BUF_TRANS_A_S5T1 => 16#06_4e28# / Register_Width,
1139 DDI_BUF_TRANS_A_S5T2 => 16#06_4e2c# / Register_Width,
1140 DDI_BUF_TRANS_A_S6T1 => 16#06_4e30# / Register_Width,
1141 DDI_BUF_TRANS_A_S6T2 => 16#06_4e34# / Register_Width,
1142 DDI_BUF_TRANS_A_S7T1 => 16#06_4e38# / Register_Width,
1143 DDI_BUF_TRANS_A_S7T2 => 16#06_4e3c# / Register_Width,
1144 DDI_BUF_TRANS_A_S8T1 => 16#06_4e40# / Register_Width,
1145 DDI_BUF_TRANS_A_S8T2 => 16#06_4e44# / Register_Width,
1146 DDI_BUF_TRANS_A_S9T1 => 16#06_4e48# / Register_Width,
1147 DDI_BUF_TRANS_A_S9T2 => 16#06_4e4c# / Register_Width,
Nico Huber83693c82016-10-08 22:17:55 +02001148 DDI_AUX_CTL_A => 16#06_4010# / Register_Width, -- aliased by DP_AUX_CTL_A
1149 DDI_AUX_DATA_A_1 => 16#06_4014# / Register_Width, -- aliased by DP_AUX_DATA_A_1
1150 DDI_AUX_DATA_A_2 => 16#06_4018# / Register_Width, -- aliased by DP_AUX_DATA_A_2
1151 DDI_AUX_DATA_A_3 => 16#06_401c# / Register_Width, -- aliased by DP_AUX_DATA_A_3
1152 DDI_AUX_DATA_A_4 => 16#06_4020# / Register_Width, -- aliased by DP_AUX_DATA_A_4
1153 DDI_AUX_DATA_A_5 => 16#06_4024# / Register_Width, -- aliased by DP_AUX_DATA_A_5
1154 DDI_AUX_MUTEX_A => 16#06_402c# / Register_Width,
Nico Huber01b680f2017-06-09 16:24:22 +02001155
Arthur Heymans73ea0322018-03-28 17:17:07 +02001156 DDI_BUF_CTL_B => 16#06_4100# / Register_Width, -- aliased by GMCH_DP_B
Nico Huber01b680f2017-06-09 16:24:22 +02001157 DDI_BUF_TRANS_B_S0T1 => 16#06_4e60# / Register_Width,
1158 DDI_BUF_TRANS_B_S0T2 => 16#06_4e64# / Register_Width,
1159 DDI_BUF_TRANS_B_S1T1 => 16#06_4e68# / Register_Width,
1160 DDI_BUF_TRANS_B_S1T2 => 16#06_4e6c# / Register_Width,
1161 DDI_BUF_TRANS_B_S2T1 => 16#06_4e70# / Register_Width,
1162 DDI_BUF_TRANS_B_S2T2 => 16#06_4e74# / Register_Width,
1163 DDI_BUF_TRANS_B_S3T1 => 16#06_4e78# / Register_Width,
1164 DDI_BUF_TRANS_B_S3T2 => 16#06_4e7c# / Register_Width,
1165 DDI_BUF_TRANS_B_S4T1 => 16#06_4e80# / Register_Width,
1166 DDI_BUF_TRANS_B_S4T2 => 16#06_4e84# / Register_Width,
1167 DDI_BUF_TRANS_B_S5T1 => 16#06_4e88# / Register_Width,
1168 DDI_BUF_TRANS_B_S5T2 => 16#06_4e8c# / Register_Width,
1169 DDI_BUF_TRANS_B_S6T1 => 16#06_4e90# / Register_Width,
1170 DDI_BUF_TRANS_B_S6T2 => 16#06_4e94# / Register_Width,
1171 DDI_BUF_TRANS_B_S7T1 => 16#06_4e98# / Register_Width,
1172 DDI_BUF_TRANS_B_S7T2 => 16#06_4e9c# / Register_Width,
1173 DDI_BUF_TRANS_B_S8T1 => 16#06_4ea0# / Register_Width,
1174 DDI_BUF_TRANS_B_S8T2 => 16#06_4ea4# / Register_Width,
1175 DDI_BUF_TRANS_B_S9T1 => 16#06_4ea8# / Register_Width,
1176 DDI_BUF_TRANS_B_S9T2 => 16#06_4eac# / Register_Width,
Nico Huber83693c82016-10-08 22:17:55 +02001177 DDI_AUX_CTL_B => 16#06_4110# / Register_Width,
1178 DDI_AUX_DATA_B_1 => 16#06_4114# / Register_Width,
1179 DDI_AUX_DATA_B_2 => 16#06_4118# / Register_Width,
1180 DDI_AUX_DATA_B_3 => 16#06_411c# / Register_Width,
1181 DDI_AUX_DATA_B_4 => 16#06_4120# / Register_Width,
1182 DDI_AUX_DATA_B_5 => 16#06_4124# / Register_Width,
1183 DDI_AUX_MUTEX_B => 16#06_412c# / Register_Width,
Nico Huber01b680f2017-06-09 16:24:22 +02001184
Arthur Heymans73ea0322018-03-28 17:17:07 +02001185 DDI_BUF_CTL_C => 16#06_4200# / Register_Width, -- aliased by GMCH_DP_C
Nico Huber01b680f2017-06-09 16:24:22 +02001186 DDI_BUF_TRANS_C_S0T1 => 16#06_4ec0# / Register_Width,
1187 DDI_BUF_TRANS_C_S0T2 => 16#06_4ec4# / Register_Width,
1188 DDI_BUF_TRANS_C_S1T1 => 16#06_4ec8# / Register_Width,
1189 DDI_BUF_TRANS_C_S1T2 => 16#06_4ecc# / Register_Width,
1190 DDI_BUF_TRANS_C_S2T1 => 16#06_4ed0# / Register_Width,
1191 DDI_BUF_TRANS_C_S2T2 => 16#06_4ed4# / Register_Width,
1192 DDI_BUF_TRANS_C_S3T1 => 16#06_4ed8# / Register_Width,
1193 DDI_BUF_TRANS_C_S3T2 => 16#06_4edc# / Register_Width,
1194 DDI_BUF_TRANS_C_S4T1 => 16#06_4ee0# / Register_Width,
1195 DDI_BUF_TRANS_C_S4T2 => 16#06_4ee4# / Register_Width,
1196 DDI_BUF_TRANS_C_S5T1 => 16#06_4ee8# / Register_Width,
1197 DDI_BUF_TRANS_C_S5T2 => 16#06_4eec# / Register_Width,
1198 DDI_BUF_TRANS_C_S6T1 => 16#06_4ef0# / Register_Width,
1199 DDI_BUF_TRANS_C_S6T2 => 16#06_4ef4# / Register_Width,
1200 DDI_BUF_TRANS_C_S7T1 => 16#06_4ef8# / Register_Width,
1201 DDI_BUF_TRANS_C_S7T2 => 16#06_4efc# / Register_Width,
1202 DDI_BUF_TRANS_C_S8T1 => 16#06_4f00# / Register_Width,
1203 DDI_BUF_TRANS_C_S8T2 => 16#06_4f04# / Register_Width,
1204 DDI_BUF_TRANS_C_S9T1 => 16#06_4f08# / Register_Width,
1205 DDI_BUF_TRANS_C_S9T2 => 16#06_4f0c# / Register_Width,
Nico Huber83693c82016-10-08 22:17:55 +02001206 DDI_AUX_CTL_C => 16#06_4210# / Register_Width,
1207 DDI_AUX_DATA_C_1 => 16#06_4214# / Register_Width,
1208 DDI_AUX_DATA_C_2 => 16#06_4218# / Register_Width,
1209 DDI_AUX_DATA_C_3 => 16#06_421c# / Register_Width,
1210 DDI_AUX_DATA_C_4 => 16#06_4220# / Register_Width,
1211 DDI_AUX_DATA_C_5 => 16#06_4224# / Register_Width,
1212 DDI_AUX_MUTEX_C => 16#06_422c# / Register_Width,
Nico Huber01b680f2017-06-09 16:24:22 +02001213
Arthur Heymans73ea0322018-03-28 17:17:07 +02001214 DDI_BUF_CTL_D => 16#06_4300# / Register_Width, -- aliased by GMCH_DP_D
Nico Huber01b680f2017-06-09 16:24:22 +02001215 DDI_BUF_TRANS_D_S0T1 => 16#06_4f20# / Register_Width,
1216 DDI_BUF_TRANS_D_S0T2 => 16#06_4f24# / Register_Width,
1217 DDI_BUF_TRANS_D_S1T1 => 16#06_4f28# / Register_Width,
1218 DDI_BUF_TRANS_D_S1T2 => 16#06_4f2c# / Register_Width,
1219 DDI_BUF_TRANS_D_S2T1 => 16#06_4f30# / Register_Width,
1220 DDI_BUF_TRANS_D_S2T2 => 16#06_4f34# / Register_Width,
1221 DDI_BUF_TRANS_D_S3T1 => 16#06_4f38# / Register_Width,
1222 DDI_BUF_TRANS_D_S3T2 => 16#06_4f3c# / Register_Width,
1223 DDI_BUF_TRANS_D_S4T1 => 16#06_4f40# / Register_Width,
1224 DDI_BUF_TRANS_D_S4T2 => 16#06_4f44# / Register_Width,
1225 DDI_BUF_TRANS_D_S5T1 => 16#06_4f48# / Register_Width,
1226 DDI_BUF_TRANS_D_S5T2 => 16#06_4f4c# / Register_Width,
1227 DDI_BUF_TRANS_D_S6T1 => 16#06_4f50# / Register_Width,
1228 DDI_BUF_TRANS_D_S6T2 => 16#06_4f54# / Register_Width,
1229 DDI_BUF_TRANS_D_S7T1 => 16#06_4f58# / Register_Width,
1230 DDI_BUF_TRANS_D_S7T2 => 16#06_4f5c# / Register_Width,
1231 DDI_BUF_TRANS_D_S8T1 => 16#06_4f60# / Register_Width,
1232 DDI_BUF_TRANS_D_S8T2 => 16#06_4f64# / Register_Width,
1233 DDI_BUF_TRANS_D_S9T1 => 16#06_4f68# / Register_Width,
1234 DDI_BUF_TRANS_D_S9T2 => 16#06_4f6c# / Register_Width,
Nico Huber83693c82016-10-08 22:17:55 +02001235 DDI_AUX_CTL_D => 16#06_4310# / Register_Width,
1236 DDI_AUX_DATA_D_1 => 16#06_4314# / Register_Width,
1237 DDI_AUX_DATA_D_2 => 16#06_4318# / Register_Width,
1238 DDI_AUX_DATA_D_3 => 16#06_431c# / Register_Width,
1239 DDI_AUX_DATA_D_4 => 16#06_4320# / Register_Width,
1240 DDI_AUX_DATA_D_5 => 16#06_4324# / Register_Width,
1241 DDI_AUX_MUTEX_D => 16#06_432c# / Register_Width,
Nico Huber01b680f2017-06-09 16:24:22 +02001242
Nico Huber83693c82016-10-08 22:17:55 +02001243 DDI_BUF_CTL_E => 16#06_4400# / Register_Width,
Nico Huber01b680f2017-06-09 16:24:22 +02001244 DDI_BUF_TRANS_E_S0T1 => 16#06_4f80# / Register_Width,
1245 DDI_BUF_TRANS_E_S0T2 => 16#06_4f84# / Register_Width,
1246 DDI_BUF_TRANS_E_S1T1 => 16#06_4f88# / Register_Width,
1247 DDI_BUF_TRANS_E_S1T2 => 16#06_4f8c# / Register_Width,
1248 DDI_BUF_TRANS_E_S2T1 => 16#06_4f90# / Register_Width,
1249 DDI_BUF_TRANS_E_S2T2 => 16#06_4f94# / Register_Width,
1250 DDI_BUF_TRANS_E_S3T1 => 16#06_4f98# / Register_Width,
1251 DDI_BUF_TRANS_E_S3T2 => 16#06_4f9c# / Register_Width,
1252 DDI_BUF_TRANS_E_S4T1 => 16#06_4fa0# / Register_Width,
1253 DDI_BUF_TRANS_E_S4T2 => 16#06_4fa4# / Register_Width,
1254 DDI_BUF_TRANS_E_S5T1 => 16#06_4fa8# / Register_Width,
1255 DDI_BUF_TRANS_E_S5T2 => 16#06_4fac# / Register_Width,
1256 DDI_BUF_TRANS_E_S6T1 => 16#06_4fb0# / Register_Width,
1257 DDI_BUF_TRANS_E_S6T2 => 16#06_4fb4# / Register_Width,
1258 DDI_BUF_TRANS_E_S7T1 => 16#06_4fb8# / Register_Width,
1259 DDI_BUF_TRANS_E_S7T2 => 16#06_4fbc# / Register_Width,
1260 DDI_BUF_TRANS_E_S8T1 => 16#06_4fc0# / Register_Width,
1261 DDI_BUF_TRANS_E_S8T2 => 16#06_4fc4# / Register_Width,
1262 DDI_BUF_TRANS_E_S9T1 => 16#06_4fc8# / Register_Width,
1263 DDI_BUF_TRANS_E_S9T2 => 16#06_4fcc# / Register_Width,
Nico Huber83693c82016-10-08 22:17:55 +02001264 DP_TP_CTL_A => 16#06_4040# / Register_Width,
1265 DP_TP_CTL_B => 16#06_4140# / Register_Width,
1266 DP_TP_CTL_C => 16#06_4240# / Register_Width,
1267 DP_TP_CTL_D => 16#06_4340# / Register_Width,
1268 DP_TP_CTL_E => 16#06_4440# / Register_Width,
1269 DP_TP_STATUS_B => 16#06_4144# / Register_Width,
1270 DP_TP_STATUS_C => 16#06_4244# / Register_Width,
1271 DP_TP_STATUS_D => 16#06_4344# / Register_Width,
1272 DP_TP_STATUS_E => 16#06_4444# / Register_Width,
1273 PORT_CLK_SEL_DDIA => 16#04_6100# / Register_Width,
1274 PORT_CLK_SEL_DDIB => 16#04_6104# / Register_Width,
1275 PORT_CLK_SEL_DDIC => 16#04_6108# / Register_Width,
1276 PORT_CLK_SEL_DDID => 16#04_610c# / Register_Width,
1277 PORT_CLK_SEL_DDIE => 16#04_6110# / Register_Width,
1278
Nico Huberd0f84b92019-09-22 21:31:52 +02001279 -- Haswell LCPLL registers
1280 LCPLL_CTL => 16#13_0040# / Register_Width,
1281
Nico Huber58afc202017-06-12 21:34:55 +02001282 -- Skylake I_boost configuration
1283 DISPIO_CR_TX_BMU_CR0 => 16#06_c00c# / Register_Width,
1284
Nico Huber83693c82016-10-08 22:17:55 +02001285 -- Skylake DPLL registers
1286 DPLL1_CFGR1 => 16#06_c040# / Register_Width,
1287 DPLL1_CFGR2 => 16#06_c044# / Register_Width,
1288 DPLL2_CFGR1 => 16#06_c048# / Register_Width,
1289 DPLL2_CFGR2 => 16#06_c04c# / Register_Width,
1290 DPLL3_CFGR1 => 16#06_c050# / Register_Width,
1291 DPLL3_CFGR2 => 16#06_c054# / Register_Width,
1292 DPLL_CTRL1 => 16#06_c058# / Register_Width,
1293 DPLL_CTRL2 => 16#06_c05c# / Register_Width,
1294 DPLL_STATUS => 16#06_c060# / Register_Width,
1295
1296 -- CD CLK register
1297 CDCLK_CTL => 16#04_6000# / Register_Width,
Nico Huberd0f84b92019-09-22 21:31:52 +02001298 CDCLK_FREQ => 16#04_6200# / Register_Width,
Nico Huber83693c82016-10-08 22:17:55 +02001299
1300 -- Skylake LCPLL registers
1301 LCPLL1_CTL => 16#04_6010# / Register_Width,
1302 LCPLL2_CTL => 16#04_6014# / Register_Width,
1303
1304 -- SPLL register
1305 SPLL_CTL => 16#04_6020# / Register_Width,
1306
1307 -- WRPLL registers
1308 WRPLL_CTL_1 => 16#04_6040# / Register_Width,
1309 WRPLL_CTL_2 => 16#04_6060# / Register_Width,
1310
Nico Huber40820442017-01-20 14:00:53 +01001311 -- Broxton Display Engine PLL registers
1312 BXT_DE_PLL_CTL => 16#06_d000# / Register_Width,
1313 BXT_DE_PLL_ENABLE => 16#04_6070# / Register_Width,
1314
Nico Huber4b0239f2017-02-07 18:26:51 +01001315 -- Broxton DDI PHY PLL registers
1316 BXT_PORT_PLL_ENABLE_A => 16#04_6074# / Register_Width,
1317 BXT_PORT_PLL_ENABLE_B => 16#04_6078# / Register_Width,
1318 BXT_PORT_PLL_ENABLE_C => 16#04_607c# / Register_Width,
1319 BXT_PORT_PLL_EBB_0_A => 16#16_2034# / Register_Width,
1320 BXT_PORT_PLL_EBB_4_A => 16#16_2038# / Register_Width,
1321 BXT_PORT_PLL_0_A => 16#16_2100# / Register_Width,
1322 BXT_PORT_PLL_1_A => 16#16_2104# / Register_Width,
1323 BXT_PORT_PLL_2_A => 16#16_2108# / Register_Width,
1324 BXT_PORT_PLL_3_A => 16#16_210c# / Register_Width,
1325 BXT_PORT_PLL_6_A => 16#16_2118# / Register_Width,
1326 BXT_PORT_PLL_8_A => 16#16_2120# / Register_Width,
1327 BXT_PORT_PLL_9_A => 16#16_2124# / Register_Width,
1328 BXT_PORT_PLL_10_A => 16#16_2128# / Register_Width,
Nico Huber4b0239f2017-02-07 18:26:51 +01001329 BXT_PORT_PLL_EBB_0_B => 16#06_c034# / Register_Width,
1330 BXT_PORT_PLL_EBB_4_B => 16#06_c038# / Register_Width,
1331 BXT_PORT_PLL_0_B => 16#06_c100# / Register_Width,
1332 BXT_PORT_PLL_1_B => 16#06_c104# / Register_Width,
1333 BXT_PORT_PLL_2_B => 16#06_c108# / Register_Width,
1334 BXT_PORT_PLL_3_B => 16#06_c10c# / Register_Width,
1335 BXT_PORT_PLL_6_B => 16#06_c118# / Register_Width,
1336 BXT_PORT_PLL_8_B => 16#06_c120# / Register_Width,
1337 BXT_PORT_PLL_9_B => 16#06_c124# / Register_Width,
1338 BXT_PORT_PLL_10_B => 16#06_c128# / Register_Width,
Nico Huber4b0239f2017-02-07 18:26:51 +01001339 BXT_PORT_PLL_EBB_0_C => 16#06_c340# / Register_Width,
1340 BXT_PORT_PLL_EBB_4_C => 16#06_c344# / Register_Width,
1341 BXT_PORT_PLL_0_C => 16#06_c380# / Register_Width,
1342 BXT_PORT_PLL_1_C => 16#06_c384# / Register_Width,
1343 BXT_PORT_PLL_2_C => 16#06_c388# / Register_Width,
1344 BXT_PORT_PLL_3_C => 16#06_c38c# / Register_Width,
1345 BXT_PORT_PLL_6_C => 16#06_c398# / Register_Width,
1346 BXT_PORT_PLL_8_C => 16#06_c3a0# / Register_Width,
1347 BXT_PORT_PLL_9_C => 16#06_c3a4# / Register_Width,
1348 BXT_PORT_PLL_10_C => 16#06_c3a8# / Register_Width,
Nico Huberfdd93652017-02-08 13:41:38 +01001349
1350 -- Broxton DDI PHY PCS? registers
1351 BXT_PORT_PCS_DW10_01_A => 16#16_2428# / Register_Width,
1352 BXT_PORT_PCS_DW12_01_A => 16#16_2430# / Register_Width,
1353 BXT_PORT_PCS_DW10_GRP_A => 16#16_2c28# / Register_Width,
1354 BXT_PORT_PCS_DW12_GRP_A => 16#16_2c30# / Register_Width,
1355 BXT_PORT_PCS_DW10_01_B => 16#06_c428# / Register_Width,
1356 BXT_PORT_PCS_DW12_01_B => 16#06_c430# / Register_Width,
1357 BXT_PORT_PCS_DW10_01_C => 16#06_c828# / Register_Width,
Nico Huber4b0239f2017-02-07 18:26:51 +01001358 BXT_PORT_PCS_DW12_01_C => 16#06_c830# / Register_Width,
Nico Huberfdd93652017-02-08 13:41:38 +01001359 BXT_PORT_PCS_DW10_GRP_B => 16#06_cc28# / Register_Width,
1360 BXT_PORT_PCS_DW12_GRP_B => 16#06_cc30# / Register_Width,
1361 BXT_PORT_PCS_DW10_GRP_C => 16#06_ce28# / Register_Width,
Nico Huber4b0239f2017-02-07 18:26:51 +01001362 BXT_PORT_PCS_DW12_GRP_C => 16#06_ce30# / Register_Width,
1363
Nico Huberf6266002017-02-03 12:17:28 +01001364 -- Broxton DDI PHY registers
1365 BXT_P_CR_GT_DISP_PWRON => 16#13_8090# / Register_Width,
1366 BXT_PHY_CTL_A => 16#06_4c00# / Register_Width,
1367 BXT_PHY_CTL_B => 16#06_4c10# / Register_Width,
1368 BXT_PHY_CTL_C => 16#06_4c20# / Register_Width,
1369 BXT_PHY_CTL_FAM_EDP => 16#06_4c80# / Register_Width,
1370 BXT_PHY_CTL_FAM_DDI => 16#06_4c90# / Register_Width,
1371
1372 -- Broxton DDI PHY common lane registers
1373 BXT_PORT_CL1CM_DW0_A => 16#16_2000# / Register_Width,
1374 BXT_PORT_CL1CM_DW0_BC => 16#06_c000# / Register_Width,
1375 BXT_PORT_CL1CM_DW9_A => 16#16_2024# / Register_Width,
1376 BXT_PORT_CL1CM_DW9_BC => 16#06_c024# / Register_Width,
1377 BXT_PORT_CL1CM_DW10_A => 16#16_2028# / Register_Width,
1378 BXT_PORT_CL1CM_DW10_BC => 16#06_c028# / Register_Width,
1379 BXT_PORT_CL1CM_DW28_A => 16#16_2070# / Register_Width,
1380 BXT_PORT_CL1CM_DW28_BC => 16#06_c070# / Register_Width,
1381 BXT_PORT_CL1CM_DW30_A => 16#16_2078# / Register_Width,
1382 BXT_PORT_CL1CM_DW30_BC => 16#06_c078# / Register_Width,
1383 BXT_PORT_CL2CM_DW6_BC => 16#06_c358# / Register_Width,
1384
Nico Huberafadcac2017-02-08 13:41:38 +01001385 -- Broxton DDI PHY TX lane registers
Nico Huberfdd93652017-02-08 13:41:38 +01001386 BXT_PORT_TX_DW2_LN0_A => 16#16_2508# / Register_Width,
1387 BXT_PORT_TX_DW3_LN0_A => 16#16_250c# / Register_Width,
1388 BXT_PORT_TX_DW4_LN0_A => 16#16_2510# / Register_Width,
Nico Huberafadcac2017-02-08 13:41:38 +01001389 BXT_PORT_TX_DW14_LN0_A => 16#16_2538# / Register_Width,
1390 BXT_PORT_TX_DW14_LN1_A => 16#16_25b8# / Register_Width,
1391 BXT_PORT_TX_DW14_LN2_A => 16#16_2738# / Register_Width,
1392 BXT_PORT_TX_DW14_LN3_A => 16#16_27b8# / Register_Width,
Nico Huberfdd93652017-02-08 13:41:38 +01001393 BXT_PORT_TX_DW2_GRP_A => 16#16_2d08# / Register_Width,
1394 BXT_PORT_TX_DW3_GRP_A => 16#16_2d0c# / Register_Width,
1395 BXT_PORT_TX_DW4_GRP_A => 16#16_2d10# / Register_Width,
1396 BXT_PORT_TX_DW2_LN0_B => 16#06_c508# / Register_Width,
1397 BXT_PORT_TX_DW3_LN0_B => 16#06_c50c# / Register_Width,
1398 BXT_PORT_TX_DW4_LN0_B => 16#06_c510# / Register_Width,
Nico Huberafadcac2017-02-08 13:41:38 +01001399 BXT_PORT_TX_DW14_LN0_B => 16#06_c538# / Register_Width,
1400 BXT_PORT_TX_DW14_LN1_B => 16#06_c5b8# / Register_Width,
1401 BXT_PORT_TX_DW14_LN2_B => 16#06_c738# / Register_Width,
1402 BXT_PORT_TX_DW14_LN3_B => 16#06_c7b8# / Register_Width,
Nico Huberfdd93652017-02-08 13:41:38 +01001403 BXT_PORT_TX_DW2_GRP_B => 16#06_cd08# / Register_Width,
1404 BXT_PORT_TX_DW3_GRP_B => 16#06_cd0c# / Register_Width,
1405 BXT_PORT_TX_DW4_GRP_B => 16#06_cd10# / Register_Width,
1406 BXT_PORT_TX_DW2_LN0_C => 16#06_c908# / Register_Width,
1407 BXT_PORT_TX_DW3_LN0_C => 16#06_c90c# / Register_Width,
1408 BXT_PORT_TX_DW4_LN0_C => 16#06_c910# / Register_Width,
Nico Huberafadcac2017-02-08 13:41:38 +01001409 BXT_PORT_TX_DW14_LN0_C => 16#06_c938# / Register_Width,
1410 BXT_PORT_TX_DW14_LN1_C => 16#06_c9b8# / Register_Width,
1411 BXT_PORT_TX_DW14_LN2_C => 16#06_cb38# / Register_Width,
1412 BXT_PORT_TX_DW14_LN3_C => 16#06_cbb8# / Register_Width,
Nico Huberfdd93652017-02-08 13:41:38 +01001413 BXT_PORT_TX_DW2_GRP_C => 16#06_cf08# / Register_Width,
1414 BXT_PORT_TX_DW3_GRP_C => 16#06_cf0c# / Register_Width,
1415 BXT_PORT_TX_DW4_GRP_C => 16#06_cf10# / Register_Width,
Nico Huberafadcac2017-02-08 13:41:38 +01001416
Nico Huberf6266002017-02-03 12:17:28 +01001417 -- Broxton DDI PHY ref registers
1418 BXT_PORT_REF_DW3_A => 16#16_218c# / Register_Width,
1419 BXT_PORT_REF_DW3_BC => 16#06_c18c# / Register_Width,
1420 BXT_PORT_REF_DW6_A => 16#16_2198# / Register_Width,
1421 BXT_PORT_REF_DW6_BC => 16#06_c198# / Register_Width,
1422 BXT_PORT_REF_DW8_A => 16#16_21a0# / Register_Width,
1423 BXT_PORT_REF_DW8_BC => 16#06_c1a0# / Register_Width,
1424
Nico Huber83693c82016-10-08 22:17:55 +02001425 -- Power Down Well registers
1426 PWR_WELL_CTL_BIOS => 16#04_5400# / Register_Width,
1427 PWR_WELL_CTL_DRIVER => 16#04_5404# / Register_Width,
1428 PWR_WELL_CTL_KVMR => 16#04_5408# / Register_Width,
1429 PWR_WELL_CTL_DEBUG => 16#04_540c# / Register_Width,
1430 PWR_WELL_CTL5 => 16#04_5410# / Register_Width,
1431 PWR_WELL_CTL6 => 16#04_5414# / Register_Width,
1432
1433 -- class Panel registers
Arthur Heymanse87d0d12018-03-28 17:02:49 +02001434 GMCH_PP_STATUS => 16#06_1200# / Register_Width,
1435 GMCH_PP_CONTROL => 16#06_1204# / Register_Width,
1436 GMCH_PP_ON_DELAYS => 16#06_1208# / Register_Width,
1437 GMCH_PP_OFF_DELAYS => 16#06_120c# / Register_Width,
1438 GMCH_PP_DIVISOR => 16#06_1210# / Register_Width,
Arthur Heymansd5198442018-03-28 17:05:12 +02001439 GMCH_PFIT_CONTROL => 16#06_1230# / Register_Width,
Nico Huber7050d2d2020-01-08 13:25:41 +01001440 PCH_PP_STATUS => 16#0c_7200# / Register_Width, -- aliased with BXT_PP_STATUS_1
1441 PCH_PP_CONTROL => 16#0c_7204# / Register_Width, -- aliased with BXT_PP_CONTROL_1
1442 PCH_PP_ON_DELAYS => 16#0c_7208# / Register_Width, -- aliased with BXT_PP_ON_DELAYS_1
1443 PCH_PP_OFF_DELAYS => 16#0c_720c# / Register_Width, -- aliased with BXT_PP_OFF_DELAYS_1
Nico Huber83693c82016-10-08 22:17:55 +02001444 PCH_PP_DIVISOR => 16#0c_7210# / Register_Width,
Nico Huber7050d2d2020-01-08 13:25:41 +01001445 BXT_PP_STATUS_2 => 16#0c_7300# / Register_Width,
1446 BXT_PP_CONTROL_2 => 16#0c_7304# / Register_Width,
1447 BXT_PP_ON_DELAYS_2 => 16#0c_7308# / Register_Width,
1448 BXT_PP_OFF_DELAYS_2 => 16#0c_730c# / Register_Width,
Nico Huber83693c82016-10-08 22:17:55 +02001449 BLC_PWM_CPU_CTL => 16#04_8254# / Register_Width,
Nico Huber7050d2d2020-01-08 13:25:41 +01001450 BLC_PWM_CPU_CTL2 => 16#04_8250# / Register_Width,
1451 BLC_PWM_PCH_CTL1 => 16#0c_8250# / Register_Width, -- aliased with BXT_BLC_PWM_CTL_1
1452 BLC_PWM_PCH_CTL2 => 16#0c_8254# / Register_Width, -- aliased with BXT_BLC_PWM_FREQ_1
1453 BXT_BLC_PWM_DUTY_1 => 16#0c_8258# / Register_Width,
1454 BXT_BLC_PWM_CTL_2 => 16#0c_8350# / Register_Width,
1455 BXT_BLC_PWM_FREQ_2 => 16#0c_8354# / Register_Width,
1456 BXT_BLC_PWM_DUTY_2 => 16#0c_8358# / Register_Width,
Nico Huber83693c82016-10-08 22:17:55 +02001457
Arthur Heymans73ea0322018-03-28 17:17:07 +02001458 -- GMCH LVDS Connector Registers
1459 GMCH_LVDS => 16#06_1180# / Register_Width,
1460
Nico Huber83693c82016-10-08 22:17:55 +02001461 -- PCH LVDS Connector Registers
1462 PCH_LVDS => 16#0e_1180# / Register_Width,
1463
1464 -- PCH ADPA Connector Registers
1465 PCH_ADPA => 16#0e_1100# / Register_Width,
1466
Arthur Heymans73ea0322018-03-28 17:17:07 +02001467 -- GMCH DVOB Connector Registers
1468 GMCH_SDVOB => 16#06_1140# / Register_Width,
1469
Nico Huber83693c82016-10-08 22:17:55 +02001470 -- PCH HDMIB Connector Registers
1471 PCH_HDMIB => 16#0e_1140# / Register_Width,
1472
Arthur Heymans73ea0322018-03-28 17:17:07 +02001473 -- GMCH DVOC Connector Registers
1474 GMCH_SDVOC => 16#06_1160# / Register_Width,
1475
Nico Huber83693c82016-10-08 22:17:55 +02001476 -- PCH HDMIC Connector Registers
1477 PCH_HDMIC => 16#0e_1150# / Register_Width,
1478
1479 -- PCH HDMID Connector Registers
1480 PCH_HDMID => 16#0e_1160# / Register_Width,
1481
1482 -- Intel Registers
Nico Huber6b4678d2019-09-22 21:31:52 +02001483 DFSM => 16#05_1000# / Register_Width,
Arthur Heymansdfcdd772018-03-28 16:42:50 +02001484 CPU_VGACNTRL => 16#04_1000# / Register_Width,
1485 GMCH_VGACNTRL => 16#07_1400# / Register_Width,
Nico Huber83693c82016-10-08 22:17:55 +02001486 FUSE_STATUS => 16#04_2000# / Register_Width,
Nico Huberd0f84b92019-09-22 21:31:52 +02001487 FUSE_STRAP => 16#04_2014# / Register_Width,
Nico Huber83693c82016-10-08 22:17:55 +02001488 FBA_CFB_BASE => 16#04_3200# / Register_Width,
1489 IPS_CTL => 16#04_3408# / Register_Width,
1490 ARB_CTL => 16#04_5000# / Register_Width,
1491 DBUF_CTL => 16#04_5008# / Register_Width,
1492 NDE_RSTWRN_OPT => 16#04_6408# / Register_Width,
Angel Ponsae186bd2020-10-21 21:37:34 +02001493 GEN8_CHICKEN_DCPR_1 => 16#04_6430# / Register_Width,
Nico Huber83693c82016-10-08 22:17:55 +02001494 PCH_DREF_CONTROL => 16#0c_6200# / Register_Width,
Nico Huber83693c82016-10-08 22:17:55 +02001495 PCH_DPLL_SEL => 16#0c_7000# / Register_Width,
1496 GT_MAILBOX => 16#13_8124# / Register_Width,
1497 GT_MAILBOX_DATA => 16#13_8128# / Register_Width,
1498 GT_MAILBOX_DATA_1 => 16#13_812c# / Register_Width,
1499
1500 PCH_DP_B => 16#0e_4100# / Register_Width,
1501 PCH_DP_AUX_CTL_B => 16#0e_4110# / Register_Width,
1502 PCH_DP_AUX_DATA_B_1 => 16#0e_4114# / Register_Width,
1503 PCH_DP_AUX_DATA_B_2 => 16#0e_4118# / Register_Width,
1504 PCH_DP_AUX_DATA_B_3 => 16#0e_411c# / Register_Width,
1505 PCH_DP_AUX_DATA_B_4 => 16#0e_4120# / Register_Width,
1506 PCH_DP_AUX_DATA_B_5 => 16#0e_4124# / Register_Width,
1507 PCH_DP_C => 16#0e_4200# / Register_Width,
1508 PCH_DP_AUX_CTL_C => 16#0e_4210# / Register_Width,
1509 PCH_DP_AUX_DATA_C_1 => 16#0e_4214# / Register_Width,
1510 PCH_DP_AUX_DATA_C_2 => 16#0e_4218# / Register_Width,
1511 PCH_DP_AUX_DATA_C_3 => 16#0e_421c# / Register_Width,
1512 PCH_DP_AUX_DATA_C_4 => 16#0e_4220# / Register_Width,
1513 PCH_DP_AUX_DATA_C_5 => 16#0e_4224# / Register_Width,
1514 PCH_DP_D => 16#0e_4300# / Register_Width,
1515 PCH_DP_AUX_CTL_D => 16#0e_4310# / Register_Width,
1516 PCH_DP_AUX_DATA_D_1 => 16#0e_4314# / Register_Width,
1517 PCH_DP_AUX_DATA_D_2 => 16#0e_4318# / Register_Width,
1518 PCH_DP_AUX_DATA_D_3 => 16#0e_431c# / Register_Width,
1519 PCH_DP_AUX_DATA_D_4 => 16#0e_4320# / Register_Width,
1520 PCH_DP_AUX_DATA_D_5 => 16#0e_4324# / Register_Width,
1521
1522 -- watermark registers
1523 WM1_LP_ILK => 16#04_5108# / Register_Width,
1524 WM2_LP_ILK => 16#04_510c# / Register_Width,
1525 WM3_LP_ILK => 16#04_5110# / Register_Width,
1526
1527 -- audio VID/DID
1528 AUD_VID_DID => 16#06_5020# / Register_Width,
1529 PCH_AUD_VID_DID => 16#0e_5020# / Register_Width,
Arthur Heymans73ea0322018-03-28 17:17:07 +02001530 G4X_AUD_VID_DID => 16#06_2020# / Register_Width,
Nico Huber83693c82016-10-08 22:17:55 +02001531
1532 -- interrupt registers
1533 DEISR => 16#04_4000# / Register_Width,
1534 DEIMR => 16#04_4004# / Register_Width,
1535 DEIIR => 16#04_4008# / Register_Width,
1536 DEIER => 16#04_400c# / Register_Width,
1537 GTISR => 16#04_4010# / Register_Width,
1538 GTIMR => 16#04_4014# / Register_Width,
1539 GTIIR => 16#04_4018# / Register_Width,
1540 GTIER => 16#04_401c# / Register_Width,
1541 SDEISR => 16#0c_4000# / Register_Width,
1542 SDEIMR => 16#0c_4004# / Register_Width,
1543 SDEIIR => 16#0c_4008# / Register_Width,
1544 SDEIER => 16#0c_400c# / Register_Width,
1545
1546 -- I2C stuff
Arthur Heymans229ed1c2018-03-28 16:45:43 +02001547 GMCH_GMBUS0 => 16#00_5100# / Register_Width,
1548 GMCH_GMBUS1 => 16#00_5104# / Register_Width,
1549 GMCH_GMBUS2 => 16#00_5108# / Register_Width,
1550 GMCH_GMBUS3 => 16#00_510c# / Register_Width,
1551 GMCH_GMBUS4 => 16#00_5110# / Register_Width,
1552 GMCH_GMBUS5 => 16#00_5120# / Register_Width,
Nico Huber83693c82016-10-08 22:17:55 +02001553 PCH_GMBUS0 => 16#0c_5100# / Register_Width,
1554 PCH_GMBUS1 => 16#0c_5104# / Register_Width,
1555 PCH_GMBUS2 => 16#0c_5108# / Register_Width,
1556 PCH_GMBUS3 => 16#0c_510c# / Register_Width,
1557 PCH_GMBUS4 => 16#0c_5110# / Register_Width,
1558 PCH_GMBUS5 => 16#0c_5120# / Register_Width,
1559
1560 -- clock gating -- maybe have to touch this
1561 DSPCLK_GATE_D => 16#04_2020# / Register_Width,
1562 PCH_FDI_CHICKEN_B_C => 16#0c_2000# / Register_Width,
1563 PCH_DSPCLK_GATE_D => 16#0c_2020# / Register_Width,
1564
1565 -- hotplug and initial detection
1566 HOTPLUG_CTL => 16#04_4030# / Register_Width,
Arthur Heymans73ea0322018-03-28 17:17:07 +02001567 PORT_HOTPLUG_EN => 16#06_1110# / Register_Width,
1568 PORT_HOTPLUG_STAT => 16#06_1114# / Register_Width,
Nico Huber83693c82016-10-08 22:17:55 +02001569 SHOTPLUG_CTL => 16#0c_4030# / Register_Width,
1570 SFUSE_STRAP => 16#0c_2014# / Register_Width,
1571
1572 -- Render Engine Command Streamer
1573 ARB_MODE => 16#00_4030# / Register_Width,
1574 HWS_PGA => 16#00_4080# / Register_Width,
1575 RCS_RING_BUFFER_TAIL => 16#00_2030# / Register_Width,
1576 VCS_RING_BUFFER_TAIL => 16#01_2030# / Register_Width,
1577 BCS_RING_BUFFER_TAIL => 16#02_2030# / Register_Width,
1578 RCS_RING_BUFFER_HEAD => 16#00_2034# / Register_Width,
1579 VCS_RING_BUFFER_HEAD => 16#01_2034# / Register_Width,
1580 BCS_RING_BUFFER_HEAD => 16#02_2034# / Register_Width,
1581 RCS_RING_BUFFER_STRT => 16#00_2038# / Register_Width,
1582 VCS_RING_BUFFER_STRT => 16#01_2038# / Register_Width,
1583 BCS_RING_BUFFER_STRT => 16#02_2038# / Register_Width,
1584 RCS_RING_BUFFER_CTL => 16#00_203c# / Register_Width,
1585 VCS_RING_BUFFER_CTL => 16#01_203c# / Register_Width,
1586 BCS_RING_BUFFER_CTL => 16#02_203c# / Register_Width,
1587 MI_MODE => 16#00_209c# / Register_Width,
1588 INSTPM => 16#00_20c0# / Register_Width,
1589 GAB_CTL_REG => 16#02_4000# / Register_Width,
1590 PP_DCLV_HIGH => 16#00_2220# / Register_Width,
1591 PP_DCLV_LOW => 16#00_2228# / Register_Width,
1592 VCS_PP_DCLV_HIGH => 16#01_2220# / Register_Width,
1593 VCS_PP_DCLV_LOW => 16#01_2228# / Register_Width,
1594 BCS_PP_DCLV_HIGH => 16#02_2220# / Register_Width,
1595 BCS_PP_DCLV_LOW => 16#02_2228# / Register_Width,
Nico Huberfbb42202016-11-07 15:08:26 +01001596 ILK_DISPLAY_CHICKEN2 => 16#04_2004# / Register_Width,
Nico Huber83693c82016-10-08 22:17:55 +02001597 UCGCTL1 => 16#00_9400# / Register_Width,
1598 UCGCTL2 => 16#00_9404# / Register_Width,
1599 MBCTL => 16#00_907c# / Register_Width,
1600 HWSTAM => 16#00_2098# / Register_Width,
1601 VCS_HWSTAM => 16#01_2098# / Register_Width,
1602 BCS_HWSTAM => 16#02_2098# / Register_Width,
1603 IIR => 16#04_4028# / Register_Width,
1604 PIPE_FRMCNT_A => 16#07_0040# / Register_Width,
1605 PIPE_FRMCNT_B => 16#07_1040# / Register_Width,
1606 PIPE_FRMCNT_C => 16#07_2040# / Register_Width,
1607 FBC_CTL => 16#04_3208# / Register_Width,
1608 PIPE_VSYNCSHIFT_A => 16#06_0028# / Register_Width,
1609 PIPE_VSYNCSHIFT_B => 16#06_1028# / Register_Width,
1610 PIPE_VSYNCSHIFT_C => 16#06_2028# / Register_Width,
1611 WM_PIPE_A => 16#04_5100# / Register_Width,
1612 WM_PIPE_B => 16#04_5104# / Register_Width,
1613 WM_PIPE_C => 16#04_5200# / Register_Width,
1614 PIPE_SCANLINE_A => 16#07_0000# / Register_Width,
1615 PIPE_SCANLINE_B => 16#07_1000# / Register_Width,
1616 PIPE_SCANLINE_C => 16#07_2000# / Register_Width,
1617 GFX_MODE => 16#00_2520# / Register_Width,
1618 CACHE_MODE_0 => 16#00_2120# / Register_Width,
1619 SLEEP_PSMI_CONTROL => 16#01_2050# / Register_Width,
1620 CTX_SIZE => 16#00_21a0# / Register_Width,
1621 GAC_ECO_BITS => 16#01_4090# / Register_Width,
1622 GAM_ECOCHK => 16#00_4090# / Register_Width,
1623 QUIRK_02084 => 16#00_2084# / Register_Width,
1624 QUIRK_02090 => 16#00_2090# / Register_Width,
1625 GT_MODE => 16#00_20d0# / Register_Width,
1626 QUIRK_F0060 => 16#0f_0060# / Register_Width,
1627 QUIRK_F1060 => 16#0f_1060# / Register_Width,
1628 QUIRK_F2060 => 16#0f_2060# / Register_Width,
1629 AUD_CNTRL_ST2 => 16#0e_50c0# / Register_Width,
1630 AUD_CNTL_ST_A => 16#0e_50b4# / Register_Width,
1631 AUD_CNTL_ST_B => 16#0e_51b4# / Register_Width,
1632 AUD_CNTL_ST_C => 16#0e_52b4# / Register_Width,
1633 AUD_HDMIW_HDMIEDID_A => 16#0e_5050# / Register_Width,
1634 AUD_HDMIW_HDMIEDID_B => 16#0e_5150# / Register_Width,
1635 AUD_HDMIW_HDMIEDID_C => 16#0e_5250# / Register_Width,
1636 AUD_CONFIG_A => 16#0e_5000# / Register_Width,
1637 AUD_CONFIG_B => 16#0e_5100# / Register_Width,
1638 AUD_CONFIG_C => 16#0e_5200# / Register_Width,
1639 TRANS_DP_CTL_A => 16#0e_0300# / Register_Width,
1640 TRANS_DP_CTL_B => 16#0e_1300# / Register_Width,
1641 TRANS_DP_CTL_C => 16#0e_2300# / Register_Width,
1642 TRANS_VSYNCSHIFT_A => 16#0e_0028# / Register_Width,
1643 TRANS_VSYNCSHIFT_B => 16#0e_1028# / Register_Width,
1644 TRANS_VSYNCSHIFT_C => 16#0e_2028# / Register_Width,
Nico Huberf54d0962016-10-20 14:17:18 +02001645 PCH_RAWCLK_FREQ => 16#0c_6204# / Register_Width,
Arthur Heymans73ea0322018-03-28 17:17:07 +02001646 QUIRK_C2004 => 16#0c_2004# / Register_Width,
1647
1648 -- MCHBAR Mirror
1649
Nico Huberb47a5c42019-09-29 00:07:21 +02001650 GMCH_CLKCFG => 16#01_0c00# / Register_Width,
1651 GMCH_HPLLVCO_MOBILE => 16#01_0c0f# / Register_Width,
1652 GMCH_HPLLVCO => 16#01_0c38# / Register_Width);
Nico Huber83693c82016-10-08 22:17:55 +02001653
1654 subtype Registers_Index is Registers_Invalid_Index range
1655 Registers_Invalid_Index'Succ (Invalid_Register) ..
1656 Registers_Invalid_Index'Last;
1657
1658 -- aliased registers
1659 DP_CTL_A : constant Registers_Index := DDI_BUF_CTL_A;
Arthur Heymans73ea0322018-03-28 17:17:07 +02001660 GMCH_DP_B : constant Registers_Index := DDI_BUF_CTL_B;
1661 GMCH_DP_C : constant Registers_Index := DDI_BUF_CTL_C;
1662 GMCH_DP_D : constant Registers_Index := DDI_BUF_CTL_D;
Nico Huber83693c82016-10-08 22:17:55 +02001663 DP_AUX_CTL_A : constant Registers_Index := DDI_AUX_CTL_A;
1664 DP_AUX_DATA_A_1 : constant Registers_Index := DDI_AUX_DATA_A_1;
1665 DP_AUX_DATA_A_2 : constant Registers_Index := DDI_AUX_DATA_A_2;
1666 DP_AUX_DATA_A_3 : constant Registers_Index := DDI_AUX_DATA_A_3;
1667 DP_AUX_DATA_A_4 : constant Registers_Index := DDI_AUX_DATA_A_4;
1668 DP_AUX_DATA_A_5 : constant Registers_Index := DDI_AUX_DATA_A_5;
Nico Huberfbb42202016-11-07 15:08:26 +01001669 ILK_DISPLAY_CHICKEN1 : constant Registers_Index := FUSE_STATUS;
Arthur Heymans73ea0322018-03-28 17:17:07 +02001670 GMCH_ADPA : constant Registers_Index := FDI_TX_CTL_B;
1671 GMCH_HDMIB : constant Registers_Index := GMCH_SDVOB;
1672 GMCH_HDMIC : constant Registers_Index := GMCH_SDVOC;
Nico Huber75a707f2018-06-18 16:28:33 +02001673 CURACNTR : constant Registers_Index := CUR_CTL_A;
1674 CURABASE : constant Registers_Index := CUR_BASE_A;
1675 CURAPOS : constant Registers_Index := CUR_POS_A;
Nico Huber7050d2d2020-01-08 13:25:41 +01001676 BXT_BLC_PWM_CTL_1 : constant Registers_Index := BLC_PWM_PCH_CTL1;
1677 BXT_BLC_PWM_FREQ_1 : constant Registers_Index := BLC_PWM_PCH_CTL2;
Nico Huber83693c82016-10-08 22:17:55 +02001678
1679 ---------------------------------------------------------------------------
1680
1681 Default_Timeout_MS : constant := 10;
1682
1683 ---------------------------------------------------------------------------
1684
1685 procedure Posting_Read
1686 (Register : in Registers_Index)
1687 with
1688 Global => (In_Out => Register_State),
1689 Depends => (Register_State =>+ (Register)),
1690 Pre => True,
1691 Post => True;
1692
1693 pragma Warnings (GNATprove, Off, "unused variable ""Verbose""",
1694 Reason => "Only used on debugging path");
1695 procedure Read
1696 (Register : in Registers_Index;
1697 Value : out Word32;
1698 Verbose : in Boolean := True)
1699 with
1700 Global => (In_Out => Register_State),
1701 Depends => ((Value, Register_State) => (Register, Register_State),
1702 null => Verbose),
1703 Pre => True,
1704 Post => True;
1705 pragma Warnings (GNATprove, On, "unused variable ""Verbose""");
1706
1707 procedure Write
1708 (Register : Registers_Index;
1709 Value : Word32)
1710 with
1711 Global => (In_Out => Register_State),
1712 Depends => (Register_State => (Register, Register_State, Value)),
1713 Pre => True,
1714 Post => True;
1715
1716 procedure Is_Set_Mask
1717 (Register : in Registers_Index;
1718 Mask : in Word32;
1719 Result : out Boolean);
1720
1721 pragma Warnings (GNATprove, Off, "unused initial value of ""Verbose""",
1722 Reason => "Only used on debugging path");
Nico Huberbcb2c472017-02-02 16:39:26 +01001723 procedure Wait
Nico Huber82ca09f2019-09-28 02:37:50 +02001724 (Register : in Registers_Index;
1725 Mask : in Word32;
1726 Value : in Word32;
1727 TOut_MS : in Natural := Default_Timeout_MS;
1728 Verbose : in Boolean := False;
1729 Success : out Boolean);
1730 procedure Wait
Nico Huberbcb2c472017-02-02 16:39:26 +01001731 (Register : Registers_Index;
1732 Mask : Word32;
1733 Value : Word32;
1734 TOut_MS : Natural := Default_Timeout_MS;
1735 Verbose : Boolean := False);
1736
Nico Huber83693c82016-10-08 22:17:55 +02001737 procedure Wait_Set_Mask
Nico Huber82ca09f2019-09-28 02:37:50 +02001738 (Register : in Registers_Index;
1739 Mask : in Word32;
1740 TOut_MS : in Natural := Default_Timeout_MS;
1741 Verbose : in Boolean := False;
1742 Success : out Boolean);
1743 procedure Wait_Set_Mask
1744 (Register : Registers_Index;
1745 Mask : Word32;
1746 TOut_MS : Natural := Default_Timeout_MS;
1747 Verbose : Boolean := False);
Nico Huber83693c82016-10-08 22:17:55 +02001748
1749 procedure Wait_Unset_Mask
Nico Huber82ca09f2019-09-28 02:37:50 +02001750 (Register : in Registers_Index;
1751 Mask : in Word32;
1752 TOut_MS : in Natural := Default_Timeout_MS;
1753 Verbose : in Boolean := False;
1754 Success : out Boolean);
1755 procedure Wait_Unset_Mask
1756 (Register : Registers_Index;
1757 Mask : Word32;
1758 TOut_MS : Natural := Default_Timeout_MS;
1759 Verbose : Boolean := False);
Nico Huber83693c82016-10-08 22:17:55 +02001760 pragma Warnings (GNATprove, On, "unused initial value of ""Verbose""");
1761
1762 procedure Set_Mask
1763 (Register : Registers_Index;
1764 Mask : Word32);
1765
1766 procedure Unset_Mask
1767 (Register : Registers_Index;
1768 Mask : Word32);
1769
1770 procedure Unset_And_Set_Mask
1771 (Register : Registers_Index;
1772 Mask_Unset : Word32;
1773 Mask_Set : Word32);
1774
Nico Huber17d64b62017-07-15 20:51:25 +02001775 procedure Clear_Fences;
1776
Nico Huberb03c8f12017-08-25 13:29:08 +02001777 procedure Add_Fence
1778 (First_Page : in GTT_Range;
1779 Last_Page : in GTT_Range;
1780 Tiling : in XY_Tiling;
1781 Pitch : in Natural;
1782 Success : out Boolean);
1783
1784 procedure Remove_Fence (First_Page, Last_Page : GTT_Range);
1785
Nico Huberadfe11f2018-06-10 14:59:04 +02001786 pragma Warnings (GNATprove, Off, "no check message justified by this",
1787 Reason => "see Annotate aspects.");
Nico Huber83693c82016-10-08 22:17:55 +02001788 procedure Write_GTT
1789 (GTT_Page : GTT_Range;
1790 Device_Address : GTT_Address_Type;
1791 Valid : Boolean)
1792 with
Nico Huberadfe11f2018-06-10 14:59:04 +02001793 Global =>
1794 (Input => Config.Variable,
1795 In_Out => GTT_State),
1796 Depends =>
1797 (GTT_State =>+ (Config.Variable, GTT_Page, Device_Address, Valid)),
1798 Annotate =>
1799 (GNATprove, Intentional,
Nico Hubere317e9c2019-09-29 03:03:18 +02001800 """GMA.State"" of ""Write_GTT"" not read",
Nico Huberadfe11f2018-06-10 14:59:04 +02001801 "Reading of Config_State depends on the platform configuration.");
Nico Huberceda17d2018-06-09 22:00:29 +02001802
1803 procedure Read_GTT
1804 (Device_Address : out GTT_Address_Type;
1805 Valid : out Boolean;
1806 GTT_Page : in GTT_Range)
1807 with
Nico Huberadfe11f2018-06-10 14:59:04 +02001808 Global =>
1809 (Input => Config.Variable,
1810 In_Out => GTT_State),
1811 Depends =>
1812 ((Device_Address, Valid, GTT_State) =>
1813 (Config.Variable, GTT_State, GTT_Page)),
1814 Annotate =>
1815 (GNATprove, Intentional,
Nico Hubere317e9c2019-09-29 03:03:18 +02001816 """GMA.State"" of ""Read_GTT"" not read",
Nico Huberadfe11f2018-06-10 14:59:04 +02001817 "Reading of Config_State depends on the platform configuration.");
1818 pragma Warnings (GNATprove, On, "no check message justified by this");
Nico Huber83693c82016-10-08 22:17:55 +02001819
Nico Huber2b6f6992017-07-09 18:11:34 +02001820 procedure Set_Register_Base (Base : Word64; GTT_Base : Word64 := 0)
Nico Huber83693c82016-10-08 22:17:55 +02001821 with
1822 Global => (Output => Address_State),
Nico Huber2b6f6992017-07-09 18:11:34 +02001823 Depends => (Address_State => (Base, GTT_Base)),
Nico Huber83693c82016-10-08 22:17:55 +02001824 Pre => True,
1825 Post => True;
1826
1827end HW.GFX.GMA.Registers;