|
@@ -2664,9 +2664,7 @@
|
|
#define DP_PRE_EMPHASIS_SHIFT 22
|
|
#define DP_PRE_EMPHASIS_SHIFT 22
|
|
|
|
|
|
/* How many wires to use. I guess 3 was too hard */
|
|
/* How many wires to use. I guess 3 was too hard */
|
|
-#define DP_PORT_WIDTH_1 (0 << 19)
|
|
|
|
-#define DP_PORT_WIDTH_2 (1 << 19)
|
|
|
|
-#define DP_PORT_WIDTH_4 (3 << 19)
|
|
|
|
|
|
+#define DP_PORT_WIDTH(width) (((width) - 1) << 19)
|
|
#define DP_PORT_WIDTH_MASK (7 << 19)
|
|
#define DP_PORT_WIDTH_MASK (7 << 19)
|
|
|
|
|
|
/* Mystic DPCD version 1.1 special mode */
|
|
/* Mystic DPCD version 1.1 special mode */
|
|
@@ -4755,9 +4753,6 @@
|
|
#define TRANS_DDI_EDP_INPUT_B_ONOFF (5<<12)
|
|
#define TRANS_DDI_EDP_INPUT_B_ONOFF (5<<12)
|
|
#define TRANS_DDI_EDP_INPUT_C_ONOFF (6<<12)
|
|
#define TRANS_DDI_EDP_INPUT_C_ONOFF (6<<12)
|
|
#define TRANS_DDI_BFI_ENABLE (1<<4)
|
|
#define TRANS_DDI_BFI_ENABLE (1<<4)
|
|
-#define TRANS_DDI_PORT_WIDTH_X1 (0<<1)
|
|
|
|
-#define TRANS_DDI_PORT_WIDTH_X2 (1<<1)
|
|
|
|
-#define TRANS_DDI_PORT_WIDTH_X4 (3<<1)
|
|
|
|
|
|
|
|
/* DisplayPort Transport Control */
|
|
/* DisplayPort Transport Control */
|
|
#define DP_TP_CTL_A 0x64040
|
|
#define DP_TP_CTL_A 0x64040
|
|
@@ -4801,9 +4796,7 @@
|
|
#define DDI_BUF_PORT_REVERSAL (1<<16)
|
|
#define DDI_BUF_PORT_REVERSAL (1<<16)
|
|
#define DDI_BUF_IS_IDLE (1<<7)
|
|
#define DDI_BUF_IS_IDLE (1<<7)
|
|
#define DDI_A_4_LANES (1<<4)
|
|
#define DDI_A_4_LANES (1<<4)
|
|
-#define DDI_PORT_WIDTH_X1 (0<<1)
|
|
|
|
-#define DDI_PORT_WIDTH_X2 (1<<1)
|
|
|
|
-#define DDI_PORT_WIDTH_X4 (3<<1)
|
|
|
|
|
|
+#define DDI_PORT_WIDTH(width) (((width) - 1) << 1)
|
|
#define DDI_INIT_DISPLAY_DETECTED (1<<0)
|
|
#define DDI_INIT_DISPLAY_DETECTED (1<<0)
|
|
|
|
|
|
/* DDI Buffer Translations */
|
|
/* DDI Buffer Translations */
|