aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_reg.h
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2012-10-24 14:06:19 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-10-26 04:24:46 -0400
commitad80a810ec3ffa96450ce3b40128d55fede7a825 (patch)
tree03f6f55c6d35782fe21607f966d5a94bf196af71 /drivers/gpu/drm/i915/i915_reg.h
parentbb523fc08d4a4a726c7555be7800735685888b3c (diff)
drm/i915: convert DDI_FUNC_CTL to transcoder
Because there's one instance of the register per CPU transcoder and not per CPU pipe. This is another register that appeared for the first time on Haswell, and even though its Haswell name is PIPE_DDI_FUNC_CTL, it will be renamed to TRANS_DDI_FUNC_CTL, so let's just use the new naming scheme before it confuses more people. Notice that there's a big improvement on intel_ddi_get_hw_state due to the new TRANSCODER_EDP. V2: Also rename the register to TRANS_DDI_FUNC_CTL as suggested by Damien Lespiau. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Reviewed-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_reg.h')
-rw-r--r--drivers/gpu/drm/i915/i915_reg.h59
1 files changed, 32 insertions, 27 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
index 99cda88819c7..04705b62d4d0 100644
--- a/drivers/gpu/drm/i915/i915_reg.h
+++ b/drivers/gpu/drm/i915/i915_reg.h
@@ -4399,34 +4399,39 @@
4399#define HSW_PWR_WELL_CTL6 0x45414 4399#define HSW_PWR_WELL_CTL6 0x45414
4400 4400
4401/* Per-pipe DDI Function Control */ 4401/* Per-pipe DDI Function Control */
4402#define PIPE_DDI_FUNC_CTL_A 0x60400 4402#define TRANS_DDI_FUNC_CTL_A 0x60400
4403#define PIPE_DDI_FUNC_CTL_B 0x61400 4403#define TRANS_DDI_FUNC_CTL_B 0x61400
4404#define PIPE_DDI_FUNC_CTL_C 0x62400 4404#define TRANS_DDI_FUNC_CTL_C 0x62400
4405#define PIPE_DDI_FUNC_CTL_EDP 0x6F400 4405#define TRANS_DDI_FUNC_CTL_EDP 0x6F400
4406#define DDI_FUNC_CTL(pipe) _PIPE(pipe, PIPE_DDI_FUNC_CTL_A, \ 4406#define TRANS_DDI_FUNC_CTL(tran) _TRANSCODER(tran, TRANS_DDI_FUNC_CTL_A, \
4407 PIPE_DDI_FUNC_CTL_B) 4407 TRANS_DDI_FUNC_CTL_B)
4408#define PIPE_DDI_FUNC_ENABLE (1<<31) 4408#define TRANS_DDI_FUNC_ENABLE (1<<31)
4409/* Those bits are ignored by pipe EDP since it can only connect to DDI A */ 4409/* Those bits are ignored by pipe EDP since it can only connect to DDI A */
4410#define PIPE_DDI_PORT_MASK (7<<28) 4410#define TRANS_DDI_PORT_MASK (7<<28)
4411#define PIPE_DDI_SELECT_PORT(x) ((x)<<28) 4411#define TRANS_DDI_SELECT_PORT(x) ((x)<<28)
4412#define PIPE_DDI_PORT_NONE (0<<28) 4412#define TRANS_DDI_PORT_NONE (0<<28)
4413#define PIPE_DDI_MODE_SELECT_MASK (7<<24) 4413#define TRANS_DDI_MODE_SELECT_MASK (7<<24)
4414#define PIPE_DDI_MODE_SELECT_HDMI (0<<24) 4414#define TRANS_DDI_MODE_SELECT_HDMI (0<<24)
4415#define PIPE_DDI_MODE_SELECT_DVI (1<<24) 4415#define TRANS_DDI_MODE_SELECT_DVI (1<<24)
4416#define PIPE_DDI_MODE_SELECT_DP_SST (2<<24) 4416#define TRANS_DDI_MODE_SELECT_DP_SST (2<<24)
4417#define PIPE_DDI_MODE_SELECT_DP_MST (3<<24) 4417#define TRANS_DDI_MODE_SELECT_DP_MST (3<<24)
4418#define PIPE_DDI_MODE_SELECT_FDI (4<<24) 4418#define TRANS_DDI_MODE_SELECT_FDI (4<<24)
4419#define PIPE_DDI_BPC_MASK (7<<20) 4419#define TRANS_DDI_BPC_MASK (7<<20)
4420#define PIPE_DDI_BPC_8 (0<<20) 4420#define TRANS_DDI_BPC_8 (0<<20)
4421#define PIPE_DDI_BPC_10 (1<<20) 4421#define TRANS_DDI_BPC_10 (1<<20)
4422#define PIPE_DDI_BPC_6 (2<<20) 4422#define TRANS_DDI_BPC_6 (2<<20)
4423#define PIPE_DDI_BPC_12 (3<<20) 4423#define TRANS_DDI_BPC_12 (3<<20)
4424#define PIPE_DDI_PVSYNC (1<<17) 4424#define TRANS_DDI_PVSYNC (1<<17)
4425#define PIPE_DDI_PHSYNC (1<<16) 4425#define TRANS_DDI_PHSYNC (1<<16)
4426#define PIPE_DDI_BFI_ENABLE (1<<4) 4426#define TRANS_DDI_EDP_INPUT_MASK (7<<12)
4427#define PIPE_DDI_PORT_WIDTH_X1 (0<<1) 4427#define TRANS_DDI_EDP_INPUT_A_ON (0<<12)
4428#define PIPE_DDI_PORT_WIDTH_X2 (1<<1) 4428#define TRANS_DDI_EDP_INPUT_A_ONOFF (4<<12)
4429#define PIPE_DDI_PORT_WIDTH_X4 (3<<1) 4429#define TRANS_DDI_EDP_INPUT_B_ONOFF (5<<12)
4430#define TRANS_DDI_EDP_INPUT_C_ONOFF (6<<12)
4431#define TRANS_DDI_BFI_ENABLE (1<<4)
4432#define TRANS_DDI_PORT_WIDTH_X1 (0<<1)
4433#define TRANS_DDI_PORT_WIDTH_X2 (1<<1)
4434#define TRANS_DDI_PORT_WIDTH_X4 (3<<1)
4430 4435
4431/* DisplayPort Transport Control */ 4436/* DisplayPort Transport Control */
4432#define DP_TP_CTL_A 0x64040 4437#define DP_TP_CTL_A 0x64040