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)
183 #define PGEN_VTOTAL_DP_ENC0_P0_MASK GENMASK(12, 0)
185 #define PGEN_VSYNC_RISING_DP_ENC0_P0_MASK GENMASK(12, 0)
187 #define PGEN_VSYNC_PULSE_WIDTH_DP_ENC0_P0_MASK GENMASK(12, 0)
189 #define PGEN_VFDE_START_DP_ENC0_P0_MASK GENMASK(12, 0)
191 #define PGEN_VFDE_ACTIVE_WIDTH_DP_ENC0_P0_MASK GENMASK(12, 0)
196 #define AUDIO_CH_SRC_SEL_DP_ENC0_P0 BIT(4)
203 #define SDP_PACKET_W_DP_ENC1_P0 BIT(5)
204 #define SDP_PACKET_W_DP_ENC1_P0_MASK BIT(5)
209 #define AU_PRTY_REGEN_DP_ENC1_P0_MASK BIT(8)
210 #define AU_CH_STS_REGEN_DP_ENC1_P0_MASK BIT(9)
211 #define AUDIO_SAMPLE_PRSENT_REGEN_DP_ENC1_P0_MASK BIT(12)
219 #define FIFO_READ_START_POINT_DP_ENC1_P0_MASK GENMASK(15, 12)
221 #define VIDEO_SRAM_FIFO_CNT_RESET_SEL_DP_ENC1_P0 BIT(0)
222 #define VIDEO_STABLE_CNT_THRD_DP_ENC1_P0 BIT(4)
223 #define SDP_DP13_EN_DP_ENC1_P0 BIT(8)
224 #define BS2BS_MODE_DP_ENC1_P0 BIT(12)
225 #define BS2BS_MODE_DP_ENC1_P0_MASK GENMASK(13, 12)
232 #define DP_ENC_DUMMY_RW_1_AUDIO_RST_EN BIT(0)
233 #define DP_ENC_DUMMY_RW_1 BIT(9)
237 #define PATTERN1_EN_DP_TRANS_P0_MASK BIT(12)
238 #define PATTERN2_EN_DP_TRANS_P0_MASK BIT(13)
239 #define PATTERN3_EN_DP_TRANS_P0_MASK BIT(14)
240 #define PATTERN4_EN_DP_TRANS_P0_MASK BIT(15)
242 #define DP_SCR_EN_DP_TRANS_P0_MASK BIT(0)
244 #define DP_TX_TRANSMITTER_4P_RESET_SW_DP_TRANS_P0 BIT(13)
251 #define HPD_CONN_THD_DP_TRANS_P0_MASK GENMASK(15, 12)
253 #define HPD_DB_DP_TRANS_P0_MASK BIT(2)
257 #define IRQ_MASK_DP_TRANS_P0_DISC_IRQ (BIT(1) << 4)
258 #define IRQ_MASK_DP_TRANS_P0_CONN_IRQ (BIT(2) << 4)
259 #define IRQ_MASK_DP_TRANS_P0_INT_IRQ (BIT(3) << 4)
260 #define IRQ_STATUS_DP_TRANS_P0_MASK GENMASK(15, 12)
262 #define XTAL_FREQ_DP_TRANS_P0_DEFAULT (BIT(0) | BIT(3) | BIT(5) | BIT(6))
266 #define HPD_INT_THD_ECO_DP_TRANS_P0_HIGH_BOUND_EXT BIT(1)
270 #define FEC_EN_DP_TRANS_P0_MASK BIT(0)
271 #define FEC_CLOCK_EN_MODE_DP_TRANS_P0 BIT(3)
273 #define POST_MISC_DATA_LANE0_OV_DP_TRANS_P0_MASK BIT(8)
274 #define POST_MISC_DATA_LANE1_OV_DP_TRANS_P0_MASK BIT(9)
275 #define POST_MISC_DATA_LANE2_OV_DP_TRANS_P0_MASK BIT(10)
276 #define POST_MISC_DATA_LANE3_OV_DP_TRANS_P0_MASK BIT(11)
283 #define DP_TRANS_DUMMY_RW_0 BIT(3)
288 #define AUX_TIMEOUT_THR_AUX_TX_P0_MASK GENMASK(12, 0)
294 #define AUX_RX_FIFO_FULL_AUX_TX_P0_MASK BIT(9)
297 #define AUX_RD_MODE_AUX_TX_P0_MASK BIT(9)
298 #define AUX_RX_FIFO_READ_PULSE_TX_P0 BIT(8)
304 #define AUX_RX_PHY_STATE_AUX_TX_P0_RX_IDLE BIT(0)
306 #define AUX_NO_LENGTH_AUX_TX_P0 BIT(0)
307 #define AUX_TX_AUXTX_OV_EN_AUX_TX_P0_MASK BIT(1)
310 #define AUX_TX_REQUEST_READY_AUX_TX_P0 BIT(3)
315 #define AUX_RX_AUX_RECV_COMPLETE_IRQ_AUX_TX_P0 BIT(6)
316 #define AUX_RX_EDID_RECV_COMPLETE_IRQ_AUX_TX_P0 BIT(5)
317 #define AUX_RX_MCCS_RECV_COMPLETE_IRQ_AUX_TX_P0 BIT(4)
318 #define AUX_RX_CMD_RECV_IRQ_AUX_TX_P0 BIT(3)
319 #define AUX_RX_ADDR_RECV_IRQ_AUX_TX_P0 BIT(2)
320 #define AUX_RX_DATA_RECV_IRQ_AUX_TX_P0 BIT(1)
321 #define AUX_400US_TIMEOUT_IRQ_AUX_TX_P0 BIT(0)
336 #define MCU_REQ_DATA_NUM_AUX_TX_P0_MASK GENMASK(15, 12)
337 #define PHY_FIFO_RST_AUX_TX_P0_MASK BIT(9)
338 #define MCU_ACK_TRAN_COMPLETE_AUX_TX_P0 BIT(8)
340 #define AUX_TX_OV_EN_AUX_TX_P0_MASK BIT(0)
342 #define RX_REPLY_COMPLETE_MODE_AUX_TX_P0 BIT(8)
344 #define AUX_TX_FIFO_WDATA_NEW_MODE_T_AUX_TX_P0_MASK BIT(1)
345 #define AUX_TX_FIFO_NEW_MODE_EN_AUX_TX_P0 BIT(2)
348 #define MTK_ATOP_EN_AUX_TX_P0 BIT(0)