Lines Matching +full:12 +full:- +full:bit

1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2019-2022 MediaTek Inc.
11 #define MTK_DP_HPD_DISCONNECT BIT(1)
12 #define MTK_DP_HPD_CONNECT BIT(2)
13 #define MTK_DP_HPD_INTERRUPT BIT(3)
21 #define DA_XTP_GLB_CKDET_EN_FORCE_VAL BIT(15)
22 #define DA_XTP_GLB_CKDET_EN_FORCE_EN BIT(14)
23 #define DA_CKM_INTCKTX_EN_FORCE_VAL BIT(13)
24 #define DA_CKM_INTCKTX_EN_FORCE_EN BIT(12)
25 #define DA_CKM_CKTX0_EN_FORCE_VAL BIT(11)
26 #define DA_CKM_CKTX0_EN_FORCE_EN BIT(10)
27 #define DA_CKM_XTAL_CK_FORCE_VAL BIT(9)
28 #define DA_CKM_XTAL_CK_FORCE_EN BIT(8)
29 #define DA_CKM_BIAS_LPF_EN_FORCE_VAL BIT(7)
30 #define DA_CKM_BIAS_LPF_EN_FORCE_EN BIT(6)
31 #define DA_CKM_BIAS_EN_FORCE_VAL BIT(5)
32 #define DA_CKM_BIAS_EN_FORCE_EN BIT(4)
33 #define DA_XTP_GLB_AVD10_ON_FORCE_VAL BIT(3)
34 #define DA_XTP_GLB_AVD10_ON_FORCE BIT(2)
35 #define DA_XTP_GLB_LDO_EN_FORCE_VAL BIT(1)
36 #define DA_XTP_GLB_LDO_EN_FORCE_EN BIT(0)
38 #define RG_XTP_LN0_TX_IMPSEL_PMOS GENMASK(15, 12)
41 #define RG_XTP_LN1_TX_IMPSEL_PMOS GENMASK(15, 12)
44 #define RG_XTP_LN2_TX_IMPSEL_PMOS GENMASK(15, 12)
47 #define RG_XTP_LN3_TX_IMPSEL_PMOS GENMASK(15, 12)
50 #define RG_DPAUX_RX_VALID_DEGLITCH_EN BIT(2)
51 #define RG_XTP_GLB_CKDET_EN BIT(1)
52 #define RG_DPAUX_RX_EN BIT(0)
57 #define DP_PWR_STATE_BANDGAP BIT(0)
58 #define DP_PWR_STATE_BANDGAP_TPLL BIT(1)
73 #define SW_RST_B_PHYD BIT(4)
75 #define IRQ_MASK_AUX_TOP_IRQ BIT(2)
77 #define MEM_ISO_EN BIT(0)
78 #define FUSE_SEL BIT(2)
83 #define VIDEO_MUTE_SW_DP_ENC0_P0 BIT(2)
84 #define VIDEO_MUTE_SEL_DP_ENC0_P0 BIT(3)
85 #define ENHANCED_FRAME_EN_DP_ENC0_P0 BIT(4)
87 #define VIDEO_M_CODE_SEL_DP_ENC0_P0_MASK BIT(8)
88 #define DP_TX_ENCODER_4P_RESET_SW_DP_ENC0_P0 BIT(9)
103 #define HSP_SW_DP_ENC0_P0_MASK BIT(15)
106 #define VSP_SW_DP_ENC0_P0_MASK BIT(15)
108 #define HTOTAL_SEL_DP_ENC0_P0 BIT(0)
109 #define VTOTAL_SEL_DP_ENC0_P0 BIT(1)
110 #define HSTART_SEL_DP_ENC0_P0 BIT(2)
111 #define VSTART_SEL_DP_ENC0_P0 BIT(3)
112 #define HWIDTH_SEL_DP_ENC0_P0 BIT(4)
113 #define VHEIGHT_SEL_DP_ENC0_P0 BIT(5)
114 #define HSP_SEL_DP_ENC0_P0 BIT(6)
115 #define HSW_SEL_DP_ENC0_P0 BIT(7)
116 #define VSP_SEL_DP_ENC0_P0 BIT(8)
117 #define VSW_SEL_DP_ENC0_P0 BIT(9)
118 #define VBID_AUDIO_MUTE_FLAG_SW_DP_ENC0_P0 BIT(11)
119 #define VBID_AUDIO_MUTE_FLAG_SEL_DP_ENC0_P0 BIT(12)
122 #define VIDEO_SOURCE_SEL_DP_ENC0_P0_MASK BIT(11)
131 #define PIXEL_ENCODE_FORMAT_DP_ENC0_P0_MASK GENMASK(14, 12)
132 #define PIXEL_ENCODE_FORMAT_DP_ENC0_P0_RGB (0 << 12)
133 #define PIXEL_ENCODE_FORMAT_DP_ENC0_P0_YCBCR422 (1 << 12)
134 #define PIXEL_ENCODE_FORMAT_DP_ENC0_P0_YCBCR420 (2 << 12)
135 #define VIDEO_MN_GEN_EN_DP_ENC0_P0 BIT(15)
140 #define VBID_VIDEO_MUTE_DP_ENC0_P0_MASK BIT(2)
141 #define SDP_VSYNC_RISING_MASK_DP_ENC0_P0_MASK BIT(8)
145 #define AU_EN_DP_ENC0_P0 BIT(6)
146 #define AUDIO_8CH_EN_DP_ENC0_P0_MASK BIT(7)
147 #define AUDIO_8CH_SEL_DP_ENC0_P0_MASK BIT(8)
148 #define AUDIO_2CH_EN_DP_ENC0_P0_MASK BIT(14)
149 #define AUDIO_2CH_SEL_DP_ENC0_P0_MASK BIT(15)
160 #define ISRC_CONT_DP_ENC0_P0 BIT(0)
189 #define PGEN_VTOTAL_DP_ENC0_P0_MASK GENMASK(12, 0)
191 #define PGEN_VSYNC_RISING_DP_ENC0_P0_MASK GENMASK(12, 0)
193 #define PGEN_VSYNC_PULSE_WIDTH_DP_ENC0_P0_MASK GENMASK(12, 0)
195 #define PGEN_VFDE_START_DP_ENC0_P0_MASK GENMASK(12, 0)
197 #define PGEN_VFDE_ACTIVE_WIDTH_DP_ENC0_P0_MASK GENMASK(12, 0)
202 #define AUDIO_CH_SRC_SEL_DP_ENC0_P0 BIT(4)
209 #define SDP_PACKET_W_DP_ENC1_P0 BIT(5)
210 #define SDP_PACKET_W_DP_ENC1_P0_MASK BIT(5)
215 #define AU_PRTY_REGEN_DP_ENC1_P0_MASK BIT(8)
216 #define AU_CH_STS_REGEN_DP_ENC1_P0_MASK BIT(9)
217 #define AUDIO_SAMPLE_PRSENT_REGEN_DP_ENC1_P0_MASK BIT(12)
225 #define FIFO_READ_START_POINT_DP_ENC1_P0_MASK GENMASK(15, 12)
227 #define VIDEO_SRAM_FIFO_CNT_RESET_SEL_DP_ENC1_P0 BIT(0)
228 #define VIDEO_STABLE_CNT_THRD_DP_ENC1_P0 BIT(4)
229 #define SDP_DP13_EN_DP_ENC1_P0 BIT(8)
230 #define BS2BS_MODE_DP_ENC1_P0 BIT(12)
231 #define BS2BS_MODE_DP_ENC1_P0_MASK GENMASK(13, 12)
239 #define SDP_ASP_INSERT_IN_HBLANK_DP_ENC1_P0_MASK BIT(12)
243 #define DP_ENC_DUMMY_RW_1_AUDIO_RST_EN BIT(0)
244 #define DP_ENC_DUMMY_RW_1 BIT(9)
248 #define PATTERN1_EN_DP_TRANS_P0_MASK BIT(12)
249 #define PATTERN2_EN_DP_TRANS_P0_MASK BIT(13)
250 #define PATTERN3_EN_DP_TRANS_P0_MASK BIT(14)
251 #define PATTERN4_EN_DP_TRANS_P0_MASK BIT(15)
253 #define DP_SCR_EN_DP_TRANS_P0_MASK BIT(0)
255 #define DP_TX_TRANSMITTER_4P_RESET_SW_DP_TRANS_P0 BIT(13)
262 #define HPD_CONN_THD_DP_TRANS_P0_MASK GENMASK(15, 12)
264 #define HPD_DB_DP_TRANS_P0_MASK BIT(2)
268 #define IRQ_MASK_DP_TRANS_P0_DISC_IRQ (BIT(1) << 4)
269 #define IRQ_MASK_DP_TRANS_P0_CONN_IRQ (BIT(2) << 4)
270 #define IRQ_MASK_DP_TRANS_P0_INT_IRQ (BIT(3) << 4)
271 #define IRQ_STATUS_DP_TRANS_P0_MASK GENMASK(15, 12)
273 #define XTAL_FREQ_DP_TRANS_P0_DEFAULT (BIT(0) | BIT(3) | BIT(5) | BIT(6))
277 #define HPD_INT_THD_ECO_DP_TRANS_P0_HIGH_BOUND_EXT BIT(1)
281 #define FEC_EN_DP_TRANS_P0_MASK BIT(0)
282 #define FEC_CLOCK_EN_MODE_DP_TRANS_P0 BIT(3)
284 #define POST_MISC_DATA_LANE0_OV_DP_TRANS_P0_MASK BIT(8)
285 #define POST_MISC_DATA_LANE1_OV_DP_TRANS_P0_MASK BIT(9)
286 #define POST_MISC_DATA_LANE2_OV_DP_TRANS_P0_MASK BIT(10)
287 #define POST_MISC_DATA_LANE3_OV_DP_TRANS_P0_MASK BIT(11)
294 #define DP_TRANS_DUMMY_RW_0 BIT(3)
299 #define AUX_TIMEOUT_THR_AUX_TX_P0_MASK GENMASK(12, 0)
305 #define AUX_RX_FIFO_FULL_AUX_TX_P0_MASK BIT(9)
308 #define AUX_RD_MODE_AUX_TX_P0_MASK BIT(9)
309 #define AUX_RX_FIFO_READ_PULSE_TX_P0 BIT(8)
315 #define AUX_RX_PHY_STATE_AUX_TX_P0_RX_IDLE BIT(0)
317 #define AUX_NO_LENGTH_AUX_TX_P0 BIT(0)
318 #define AUX_TX_AUXTX_OV_EN_AUX_TX_P0_MASK BIT(1)
321 #define AUX_TX_REQUEST_READY_AUX_TX_P0 BIT(3)
326 #define AUX_RX_AUX_RECV_COMPLETE_IRQ_AUX_TX_P0 BIT(6)
327 #define AUX_RX_EDID_RECV_COMPLETE_IRQ_AUX_TX_P0 BIT(5)
328 #define AUX_RX_MCCS_RECV_COMPLETE_IRQ_AUX_TX_P0 BIT(4)
329 #define AUX_RX_CMD_RECV_IRQ_AUX_TX_P0 BIT(3)
330 #define AUX_RX_ADDR_RECV_IRQ_AUX_TX_P0 BIT(2)
331 #define AUX_RX_DATA_RECV_IRQ_AUX_TX_P0 BIT(1)
332 #define AUX_400US_TIMEOUT_IRQ_AUX_TX_P0 BIT(0)
347 #define MCU_REQ_DATA_NUM_AUX_TX_P0_MASK GENMASK(15, 12)
348 #define PHY_FIFO_RST_AUX_TX_P0_MASK BIT(9)
349 #define MCU_ACK_TRAN_COMPLETE_AUX_TX_P0 BIT(8)
351 #define AUX_TX_OV_EN_AUX_TX_P0_MASK BIT(0)
353 #define RX_REPLY_COMPLETE_MODE_AUX_TX_P0 BIT(8)
355 #define AUX_TX_FIFO_WDATA_NEW_MODE_T_AUX_TX_P0_MASK BIT(1)
356 #define AUX_TX_FIFO_NEW_MODE_EN_AUX_TX_P0 BIT(2)
359 #define MTK_ATOP_EN_AUX_TX_P0 BIT(0)