aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_reg.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/i915/i915_reg.h')
-rw-r--r--drivers/gpu/drm/i915/i915_reg.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
index 7abdc15b1ad7..65f5849f2ad6 100644
--- a/drivers/gpu/drm/i915/i915_reg.h
+++ b/drivers/gpu/drm/i915/i915_reg.h
@@ -301,6 +301,61 @@
301#define DEBUG_RESET_RENDER (1<<8) 301#define DEBUG_RESET_RENDER (1<<8)
302#define DEBUG_RESET_DISPLAY (1<<9) 302#define DEBUG_RESET_DISPLAY (1<<9)
303 303
304/*
305 * DPIO - a special bus for various display related registers to hide behind:
306 * 0x800c: m1, m2, n, p1, p2, k dividers
307 * 0x8014: REF and SFR select
308 * 0x8014: N divider, VCO select
309 * 0x801c/3c: core clock bits
310 * 0x8048/68: low pass filter coefficients
311 * 0x8100: fast clock controls
312 */
313#define DPIO_PKT 0x2100
314#define DPIO_RID (0<<24)
315#define DPIO_OP_WRITE (1<<16)
316#define DPIO_OP_READ (0<<16)
317#define DPIO_PORTID (0x12<<8)
318#define DPIO_BYTE (0xf<<4)
319#define DPIO_BUSY (1<<0) /* status only */
320#define DPIO_DATA 0x2104
321#define DPIO_REG 0x2108
322#define DPIO_CTL 0x2110
323#define DPIO_MODSEL1 (1<<3) /* if ref clk b == 27 */
324#define DPIO_MODSEL0 (1<<2) /* if ref clk a == 27 */
325#define DPIO_SFR_BYPASS (1<<1)
326#define DPIO_RESET (1<<0)
327
328#define _DPIO_DIV_A 0x800c
329#define DPIO_POST_DIV_SHIFT (28) /* 3 bits */
330#define DPIO_K_SHIFT (24) /* 4 bits */
331#define DPIO_P1_SHIFT (21) /* 3 bits */
332#define DPIO_P2_SHIFT (16) /* 5 bits */
333#define DPIO_N_SHIFT (12) /* 4 bits */
334#define DPIO_ENABLE_CALIBRATION (1<<11)
335#define DPIO_M1DIV_SHIFT (8) /* 3 bits */
336#define DPIO_M2DIV_MASK 0xff
337#define _DPIO_DIV_B 0x802c
338#define DPIO_DIV(pipe) _PIPE(pipe, _DPIO_DIV_A, _DPIO_DIV_B)
339
340#define _DPIO_REFSFR_A 0x8014
341#define DPIO_REFSEL_OVERRIDE 27
342#define DPIO_PLL_MODESEL_SHIFT 24 /* 3 bits */
343#define DPIO_BIAS_CURRENT_CTL_SHIFT 21 /* 3 bits, always 0x7 */
344#define DPIO_PLL_REFCLK_SEL_SHIFT 16 /* 2 bits */
345#define DPIO_DRIVER_CTL_SHIFT 12 /* always set to 0x8 */
346#define DPIO_CLK_BIAS_CTL_SHIFT 8 /* always set to 0x5 */
347#define _DPIO_REFSFR_B 0x8034
348#define DPIO_REFSFR(pipe) _PIPE(pipe, _DPIO_REFSFR_A, _DPIO_REFSFR_B)
349
350#define _DPIO_CORE_CLK_A 0x801c
351#define _DPIO_CORE_CLK_B 0x803c
352#define DPIO_CORE_CLK(pipe) _PIPE(pipe, _DPIO_CORE_CLK_A, _DPIO_CORE_CLK_B)
353
354#define _DPIO_LFP_COEFF_A 0x8048
355#define _DPIO_LFP_COEFF_B 0x8068
356#define DPIO_LFP_COEFF(pipe) _PIPE(pipe, _DPIO_LFP_COEFF_A, _DPIO_LFP_COEFF_B)
357
358#define DPIO_FASTCLK_DISABLE 0x8100
304 359
305/* 360/*
306 * Fence registers 361 * Fence registers