1 /* 2 * Copyright 2020 Advanced Micro Devices, Inc. 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the 9 * Software is furnished to do so, subject to the following conditions: 10 * 11 * The above copyright notice and this permission notice shall be included in 12 * all copies or substantial portions of the Software. 13 * 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20 * OTHER DEALINGS IN THE SOFTWARE. 21 * 22 * Authors: AMD 23 * 24 */ 25 26 #ifndef _DCN32_RESOURCE_H_ 27 #define _DCN32_RESOURCE_H_ 28 29 #include "core_types.h" 30 31 #define DCN3_2_DET_SEG_SIZE 64 32 #define DCN3_2_MALL_MBLK_SIZE_BYTES 65536 // 64 * 1024 33 34 #define TO_DCN32_RES_POOL(pool)\ 35 container_of(pool, struct dcn32_resource_pool, base) 36 37 extern struct _vcs_dpi_ip_params_st dcn3_2_ip; 38 extern struct _vcs_dpi_soc_bounding_box_st dcn3_2_soc; 39 40 struct dcn32_resource_pool { 41 struct resource_pool base; 42 }; 43 44 struct resource_pool *dcn32_create_resource_pool( 45 const struct dc_init_data *init_data, 46 struct dc *dc); 47 48 struct panel_cntl *dcn32_panel_cntl_create( 49 const struct panel_cntl_init_data *init_data); 50 51 bool dcn32_acquire_post_bldn_3dlut( 52 struct resource_context *res_ctx, 53 const struct resource_pool *pool, 54 int mpcc_id, 55 struct dc_3dlut **lut, 56 struct dc_transfer_func **shaper); 57 58 bool dcn32_release_post_bldn_3dlut( 59 struct resource_context *res_ctx, 60 const struct resource_pool *pool, 61 struct dc_3dlut **lut, 62 struct dc_transfer_func **shaper); 63 64 bool dcn32_remove_phantom_pipes(struct dc *dc, 65 struct dc_state *context); 66 67 void dcn32_add_phantom_pipes(struct dc *dc, 68 struct dc_state *context, 69 display_e2e_pipe_params_st *pipes, 70 unsigned int pipe_cnt, 71 unsigned int index); 72 73 bool dcn32_validate_bandwidth(struct dc *dc, 74 struct dc_state *context, 75 bool fast_validate); 76 77 int dcn32_populate_dml_pipes_from_context( 78 struct dc *dc, struct dc_state *context, 79 display_e2e_pipe_params_st *pipes, 80 bool fast_validate); 81 82 void dcn32_calculate_wm_and_dlg( 83 struct dc *dc, struct dc_state *context, 84 display_e2e_pipe_params_st *pipes, 85 int pipe_cnt, 86 int vlevel); 87 88 uint32_t dcn32_helper_calculate_num_ways_for_subvp 89 (struct dc *dc, 90 struct dc_state *context); 91 92 void dcn32_merge_pipes_for_subvp(struct dc *dc, 93 struct dc_state *context); 94 95 bool dcn32_all_pipes_have_stream_and_plane(struct dc *dc, 96 struct dc_state *context); 97 98 bool dcn32_subvp_in_use(struct dc *dc, 99 struct dc_state *context); 100 101 bool dcn32_mpo_in_use(struct dc_state *context); 102 103 struct pipe_ctx *dcn32_acquire_idle_pipe_for_head_pipe_in_layer( 104 struct dc_state *state, 105 const struct resource_pool *pool, 106 struct dc_stream_state *stream, 107 struct pipe_ctx *head_pipe); 108 109 void dcn32_determine_det_override(struct dc_state *context, display_e2e_pipe_params_st *pipes, 110 bool *is_pipe_split_expected, int pipe_cnt); 111 112 /* definitions for run time init of reg offsets */ 113 114 /* CLK SRC */ 115 #define CS_COMMON_REG_LIST_DCN3_0_RI(index, pllid) \ 116 ( \ 117 SRI_ARR_ALPHABET(PIXCLK_RESYNC_CNTL, PHYPLL, index, pllid), \ 118 SRII_ARR_2(PHASE, DP_DTO, 0, index), \ 119 SRII_ARR_2(PHASE, DP_DTO, 1, index), \ 120 SRII_ARR_2(PHASE, DP_DTO, 2, index), \ 121 SRII_ARR_2(PHASE, DP_DTO, 3, index), \ 122 SRII_ARR_2(MODULO, DP_DTO, 0, index), \ 123 SRII_ARR_2(MODULO, DP_DTO, 1, index), \ 124 SRII_ARR_2(MODULO, DP_DTO, 2, index), \ 125 SRII_ARR_2(MODULO, DP_DTO, 3, index), \ 126 SRII_ARR_2(PIXEL_RATE_CNTL, OTG, 0, index), \ 127 SRII_ARR_2(PIXEL_RATE_CNTL, OTG, 1, index), \ 128 SRII_ARR_2(PIXEL_RATE_CNTL, OTG, 2, index), \ 129 SRII_ARR_2(PIXEL_RATE_CNTL, OTG, 3, index) \ 130 ) 131 132 /* ABM */ 133 #define ABM_DCN32_REG_LIST_RI(id) \ 134 ( \ 135 SRI_ARR(DC_ABM1_HG_SAMPLE_RATE, ABM, id), \ 136 SRI_ARR(DC_ABM1_LS_SAMPLE_RATE, ABM, id), \ 137 SRI_ARR(BL1_PWM_BL_UPDATE_SAMPLE_RATE, ABM, id), \ 138 SRI_ARR(DC_ABM1_HG_MISC_CTRL, ABM, id), \ 139 SRI_ARR(DC_ABM1_IPCSC_COEFF_SEL, ABM, id), \ 140 SRI_ARR(BL1_PWM_CURRENT_ABM_LEVEL, ABM, id), \ 141 SRI_ARR(BL1_PWM_TARGET_ABM_LEVEL, ABM, id), \ 142 SRI_ARR(BL1_PWM_USER_LEVEL, ABM, id), \ 143 SRI_ARR(DC_ABM1_LS_MIN_MAX_PIXEL_VALUE_THRES, ABM, id), \ 144 SRI_ARR(DC_ABM1_HGLS_REG_READ_PROGRESS, ABM, id), \ 145 SRI_ARR(DC_ABM1_ACE_OFFSET_SLOPE_0, ABM, id), \ 146 SRI_ARR(DC_ABM1_ACE_THRES_12, ABM, id), NBIO_SR_ARR(BIOS_SCRATCH_2, id) \ 147 ) 148 149 /* Audio */ 150 #define AUD_COMMON_REG_LIST_RI(id) \ 151 ( \ 152 SRI_ARR(AZALIA_F0_CODEC_ENDPOINT_INDEX, AZF0ENDPOINT, id), \ 153 SRI_ARR(AZALIA_F0_CODEC_ENDPOINT_DATA, AZF0ENDPOINT, id), \ 154 SR_ARR(AZALIA_F0_CODEC_FUNCTION_PARAMETER_STREAM_FORMATS, id), \ 155 SR_ARR(AZALIA_F0_CODEC_FUNCTION_PARAMETER_SUPPORTED_SIZE_RATES, id), \ 156 SR_ARR(AZALIA_F0_CODEC_FUNCTION_PARAMETER_POWER_STATES, id), \ 157 SR_ARR(DCCG_AUDIO_DTO_SOURCE, id), SR_ARR(DCCG_AUDIO_DTO0_MODULE, id), \ 158 SR_ARR(DCCG_AUDIO_DTO0_PHASE, id), SR_ARR(DCCG_AUDIO_DTO1_MODULE, id), \ 159 SR_ARR(DCCG_AUDIO_DTO1_PHASE, id) \ 160 ) 161 162 /* VPG */ 163 164 #define VPG_DCN3_REG_LIST_RI(id) \ 165 ( \ 166 SRI_ARR(VPG_GENERIC_STATUS, VPG, id), \ 167 SRI_ARR(VPG_GENERIC_PACKET_ACCESS_CTRL, VPG, id), \ 168 SRI_ARR(VPG_GENERIC_PACKET_DATA, VPG, id), \ 169 SRI_ARR(VPG_GSP_FRAME_UPDATE_CTRL, VPG, id), \ 170 SRI_ARR(VPG_GSP_IMMEDIATE_UPDATE_CTRL, VPG, id) \ 171 ) 172 173 /* AFMT */ 174 #define AFMT_DCN3_REG_LIST_RI(id) \ 175 ( \ 176 SRI_ARR(AFMT_INFOFRAME_CONTROL0, AFMT, id), \ 177 SRI_ARR(AFMT_VBI_PACKET_CONTROL, AFMT, id), \ 178 SRI_ARR(AFMT_AUDIO_PACKET_CONTROL, AFMT, id), \ 179 SRI_ARR(AFMT_AUDIO_PACKET_CONTROL2, AFMT, id), \ 180 SRI_ARR(AFMT_AUDIO_SRC_CONTROL, AFMT, id), \ 181 SRI_ARR(AFMT_60958_0, AFMT, id), SRI_ARR(AFMT_60958_1, AFMT, id), \ 182 SRI_ARR(AFMT_60958_2, AFMT, id), SRI_ARR(AFMT_MEM_PWR, AFMT, id) \ 183 ) 184 185 /* APG */ 186 #define APG_DCN31_REG_LIST_RI(id) \ 187 (\ 188 SRI_ARR(APG_CONTROL, APG, id), SRI_ARR(APG_CONTROL2, APG, id), \ 189 SRI_ARR(APG_MEM_PWR, APG, id), SRI_ARR(APG_DBG_GEN_CONTROL, APG, id) \ 190 ) 191 192 /* Stream encoder */ 193 #define SE_DCN32_REG_LIST_RI(id) \ 194 ( \ 195 SRI_ARR(AFMT_CNTL, DIG, id), SRI_ARR(DIG_FE_CNTL, DIG, id), \ 196 SRI_ARR(HDMI_CONTROL, DIG, id), SRI_ARR(HDMI_DB_CONTROL, DIG, id), \ 197 SRI_ARR(HDMI_GC, DIG, id), \ 198 SRI_ARR(HDMI_GENERIC_PACKET_CONTROL0, DIG, id), \ 199 SRI_ARR(HDMI_GENERIC_PACKET_CONTROL1, DIG, id), \ 200 SRI_ARR(HDMI_GENERIC_PACKET_CONTROL2, DIG, id), \ 201 SRI_ARR(HDMI_GENERIC_PACKET_CONTROL3, DIG, id), \ 202 SRI_ARR(HDMI_GENERIC_PACKET_CONTROL4, DIG, id), \ 203 SRI_ARR(HDMI_GENERIC_PACKET_CONTROL5, DIG, id), \ 204 SRI_ARR(HDMI_GENERIC_PACKET_CONTROL6, DIG, id), \ 205 SRI_ARR(HDMI_GENERIC_PACKET_CONTROL7, DIG, id), \ 206 SRI_ARR(HDMI_GENERIC_PACKET_CONTROL8, DIG, id), \ 207 SRI_ARR(HDMI_GENERIC_PACKET_CONTROL9, DIG, id), \ 208 SRI_ARR(HDMI_GENERIC_PACKET_CONTROL10, DIG, id), \ 209 SRI_ARR(HDMI_INFOFRAME_CONTROL0, DIG, id), \ 210 SRI_ARR(HDMI_INFOFRAME_CONTROL1, DIG, id), \ 211 SRI_ARR(HDMI_VBI_PACKET_CONTROL, DIG, id), \ 212 SRI_ARR(HDMI_AUDIO_PACKET_CONTROL, DIG, id), \ 213 SRI_ARR(HDMI_ACR_PACKET_CONTROL, DIG, id), \ 214 SRI_ARR(HDMI_ACR_32_0, DIG, id), SRI_ARR(HDMI_ACR_32_1, DIG, id), \ 215 SRI_ARR(HDMI_ACR_44_0, DIG, id), SRI_ARR(HDMI_ACR_44_1, DIG, id), \ 216 SRI_ARR(HDMI_ACR_48_0, DIG, id), SRI_ARR(HDMI_ACR_48_1, DIG, id), \ 217 SRI_ARR(DP_DB_CNTL, DP, id), SRI_ARR(DP_MSA_MISC, DP, id), \ 218 SRI_ARR(DP_MSA_VBID_MISC, DP, id), SRI_ARR(DP_MSA_COLORIMETRY, DP, id), \ 219 SRI_ARR(DP_MSA_TIMING_PARAM1, DP, id), \ 220 SRI_ARR(DP_MSA_TIMING_PARAM2, DP, id), \ 221 SRI_ARR(DP_MSA_TIMING_PARAM3, DP, id), \ 222 SRI_ARR(DP_MSA_TIMING_PARAM4, DP, id), \ 223 SRI_ARR(DP_MSE_RATE_CNTL, DP, id), SRI_ARR(DP_MSE_RATE_UPDATE, DP, id), \ 224 SRI_ARR(DP_PIXEL_FORMAT, DP, id), SRI_ARR(DP_SEC_CNTL, DP, id), \ 225 SRI_ARR(DP_SEC_CNTL2, DP, id), SRI_ARR(DP_SEC_CNTL6, DP, id), \ 226 SRI_ARR(DP_STEER_FIFO, DP, id), SRI_ARR(DP_VID_M, DP, id), \ 227 SRI_ARR(DP_VID_N, DP, id), SRI_ARR(DP_VID_STREAM_CNTL, DP, id), \ 228 SRI_ARR(DP_VID_TIMING, DP, id), SRI_ARR(DP_SEC_AUD_N, DP, id), \ 229 SRI_ARR(DP_SEC_TIMESTAMP, DP, id), SRI_ARR(DP_DSC_CNTL, DP, id), \ 230 SRI_ARR(DP_SEC_METADATA_TRANSMISSION, DP, id), \ 231 SRI_ARR(HDMI_METADATA_PACKET_CONTROL, DIG, id), \ 232 SRI_ARR(DP_SEC_FRAMING4, DP, id), SRI_ARR(DP_GSP11_CNTL, DP, id), \ 233 SRI_ARR(DME_CONTROL, DME, id), \ 234 SRI_ARR(DP_SEC_METADATA_TRANSMISSION, DP, id), \ 235 SRI_ARR(HDMI_METADATA_PACKET_CONTROL, DIG, id), \ 236 SRI_ARR(DIG_FE_CNTL, DIG, id), SRI_ARR(DIG_CLOCK_PATTERN, DIG, id), \ 237 SRI_ARR(DIG_FIFO_CTRL0, DIG, id) \ 238 ) 239 240 /* Aux regs */ 241 242 #define AUX_REG_LIST_RI(id) \ 243 ( \ 244 SRI_ARR(AUX_CONTROL, DP_AUX, id), SRI_ARR(AUX_DPHY_RX_CONTROL0, DP_AUX, id), \ 245 SRI_ARR(AUX_DPHY_RX_CONTROL1, DP_AUX, id) \ 246 ) 247 248 #define DCN2_AUX_REG_LIST_RI(id) \ 249 ( \ 250 AUX_REG_LIST_RI(id), SRI_ARR(AUX_DPHY_TX_CONTROL, DP_AUX, id) \ 251 ) 252 253 /* HDP */ 254 #define HPD_REG_LIST_RI(id) SRI_ARR(DC_HPD_CONTROL, HPD, id) 255 256 /* Link encoder */ 257 #define LE_DCN3_REG_LIST_RI(id) \ 258 ( \ 259 SRI_ARR(DIG_BE_CNTL, DIG, id), SRI_ARR(DIG_BE_EN_CNTL, DIG, id), \ 260 SRI_ARR(TMDS_CTL_BITS, DIG, id), \ 261 SRI_ARR(TMDS_DCBALANCER_CONTROL, DIG, id), SRI_ARR(DP_CONFIG, DP, id), \ 262 SRI_ARR(DP_DPHY_CNTL, DP, id), SRI_ARR(DP_DPHY_PRBS_CNTL, DP, id), \ 263 SRI_ARR(DP_DPHY_SCRAM_CNTL, DP, id), SRI_ARR(DP_DPHY_SYM0, DP, id), \ 264 SRI_ARR(DP_DPHY_SYM1, DP, id), SRI_ARR(DP_DPHY_SYM2, DP, id), \ 265 SRI_ARR(DP_DPHY_TRAINING_PATTERN_SEL, DP, id), \ 266 SRI_ARR(DP_LINK_CNTL, DP, id), SRI_ARR(DP_LINK_FRAMING_CNTL, DP, id), \ 267 SRI_ARR(DP_MSE_SAT0, DP, id), SRI_ARR(DP_MSE_SAT1, DP, id), \ 268 SRI_ARR(DP_MSE_SAT2, DP, id), SRI_ARR(DP_MSE_SAT_UPDATE, DP, id), \ 269 SRI_ARR(DP_SEC_CNTL, DP, id), SRI_ARR(DP_VID_STREAM_CNTL, DP, id), \ 270 SRI_ARR(DP_DPHY_FAST_TRAINING, DP, id), SRI_ARR(DP_SEC_CNTL1, DP, id), \ 271 SRI_ARR(DP_DPHY_BS_SR_SWAP_CNTL, DP, id), \ 272 SRI_ARR(DP_DPHY_HBR2_PATTERN_CONTROL, DP, id) \ 273 ) 274 275 #define LE_DCN31_REG_LIST_RI(id) \ 276 ( \ 277 LE_DCN3_REG_LIST_RI(id), SRI_ARR(DP_DPHY_INTERNAL_CTRL, DP, id), \ 278 SR_ARR(DIO_LINKA_CNTL, id), SR_ARR(DIO_LINKB_CNTL, id), \ 279 SR_ARR(DIO_LINKC_CNTL, id), SR_ARR(DIO_LINKD_CNTL, id), \ 280 SR_ARR(DIO_LINKE_CNTL, id), SR_ARR(DIO_LINKF_CNTL, id) \ 281 ) 282 283 #define UNIPHY_DCN2_REG_LIST_RI(id, phyid) \ 284 ( \ 285 SRI_ARR_ALPHABET(CLOCK_ENABLE, SYMCLK, id, phyid), \ 286 SRI_ARR_ALPHABET(CHANNEL_XBAR_CNTL, UNIPHY, id, phyid) \ 287 ) 288 289 /* HPO DP stream encoder */ 290 #define DCN3_1_HPO_DP_STREAM_ENC_REG_LIST_RI(id) \ 291 ( \ 292 SR_ARR(DP_STREAM_MAPPER_CONTROL0, id), \ 293 SR_ARR(DP_STREAM_MAPPER_CONTROL1, id), \ 294 SR_ARR(DP_STREAM_MAPPER_CONTROL2, id), \ 295 SR_ARR(DP_STREAM_MAPPER_CONTROL3, id), \ 296 SRI_ARR(DP_STREAM_ENC_CLOCK_CONTROL, DP_STREAM_ENC, id), \ 297 SRI_ARR(DP_STREAM_ENC_INPUT_MUX_CONTROL, DP_STREAM_ENC, id), \ 298 SRI_ARR(DP_STREAM_ENC_AUDIO_CONTROL, DP_STREAM_ENC, id), \ 299 SRI_ARR(DP_STREAM_ENC_CLOCK_RAMP_ADJUSTER_FIFO_STATUS_CONTROL0, DP_STREAM_ENC, id), \ 300 SRI_ARR(DP_SYM32_ENC_CONTROL, DP_SYM32_ENC, id), \ 301 SRI_ARR(DP_SYM32_ENC_VID_PIXEL_FORMAT, DP_SYM32_ENC, id), \ 302 SRI_ARR(DP_SYM32_ENC_VID_PIXEL_FORMAT_DOUBLE_BUFFER_CONTROL, DP_SYM32_ENC, id), \ 303 SRI_ARR(DP_SYM32_ENC_VID_MSA0, DP_SYM32_ENC, id), \ 304 SRI_ARR(DP_SYM32_ENC_VID_MSA1, DP_SYM32_ENC, id), \ 305 SRI_ARR(DP_SYM32_ENC_VID_MSA2, DP_SYM32_ENC, id), \ 306 SRI_ARR(DP_SYM32_ENC_VID_MSA3, DP_SYM32_ENC, id), \ 307 SRI_ARR(DP_SYM32_ENC_VID_MSA4, DP_SYM32_ENC, id), \ 308 SRI_ARR(DP_SYM32_ENC_VID_MSA5, DP_SYM32_ENC, id), \ 309 SRI_ARR(DP_SYM32_ENC_VID_MSA6, DP_SYM32_ENC, id), \ 310 SRI_ARR(DP_SYM32_ENC_VID_MSA7, DP_SYM32_ENC, id), \ 311 SRI_ARR(DP_SYM32_ENC_VID_MSA8, DP_SYM32_ENC, id), \ 312 SRI_ARR(DP_SYM32_ENC_VID_MSA_CONTROL, DP_SYM32_ENC, id), \ 313 SRI_ARR(DP_SYM32_ENC_VID_MSA_DOUBLE_BUFFER_CONTROL, DP_SYM32_ENC, id), \ 314 SRI_ARR(DP_SYM32_ENC_VID_FIFO_CONTROL, DP_SYM32_ENC, id), \ 315 SRI_ARR(DP_SYM32_ENC_VID_STREAM_CONTROL, DP_SYM32_ENC, id), \ 316 SRI_ARR(DP_SYM32_ENC_VID_VBID_CONTROL, DP_SYM32_ENC, id), \ 317 SRI_ARR(DP_SYM32_ENC_SDP_CONTROL, DP_SYM32_ENC, id), \ 318 SRI_ARR(DP_SYM32_ENC_SDP_GSP_CONTROL0, DP_SYM32_ENC, id), \ 319 SRI_ARR(DP_SYM32_ENC_SDP_GSP_CONTROL2, DP_SYM32_ENC, id), \ 320 SRI_ARR(DP_SYM32_ENC_SDP_GSP_CONTROL3, DP_SYM32_ENC, id), \ 321 SRI_ARR(DP_SYM32_ENC_SDP_GSP_CONTROL5, DP_SYM32_ENC, id), \ 322 SRI_ARR(DP_SYM32_ENC_SDP_GSP_CONTROL11, DP_SYM32_ENC, id), \ 323 SRI_ARR(DP_SYM32_ENC_SDP_METADATA_PACKET_CONTROL, DP_SYM32_ENC, id), \ 324 SRI_ARR(DP_SYM32_ENC_SDP_AUDIO_CONTROL0, DP_SYM32_ENC, id), \ 325 SRI_ARR(DP_SYM32_ENC_VID_CRC_CONTROL, DP_SYM32_ENC, id), \ 326 SRI_ARR(DP_SYM32_ENC_HBLANK_CONTROL, DP_SYM32_ENC, id) \ 327 ) 328 329 /* HPO DP link encoder regs */ 330 #define DCN3_1_HPO_DP_LINK_ENC_REG_LIST_RI(id) \ 331 ( \ 332 SRI_ARR(DP_LINK_ENC_CLOCK_CONTROL, DP_LINK_ENC, id), \ 333 SRI_ARR(DP_DPHY_SYM32_CONTROL, DP_DPHY_SYM32, id), \ 334 SRI_ARR(DP_DPHY_SYM32_STATUS, DP_DPHY_SYM32, id), \ 335 SRI_ARR(DP_DPHY_SYM32_TP_CONFIG, DP_DPHY_SYM32, id), \ 336 SRI_ARR(DP_DPHY_SYM32_TP_PRBS_SEED0, DP_DPHY_SYM32, id), \ 337 SRI_ARR(DP_DPHY_SYM32_TP_PRBS_SEED1, DP_DPHY_SYM32, id), \ 338 SRI_ARR(DP_DPHY_SYM32_TP_PRBS_SEED2, DP_DPHY_SYM32, id), \ 339 SRI_ARR(DP_DPHY_SYM32_TP_PRBS_SEED3, DP_DPHY_SYM32, id), \ 340 SRI_ARR(DP_DPHY_SYM32_TP_SQ_PULSE, DP_DPHY_SYM32, id), \ 341 SRI_ARR(DP_DPHY_SYM32_TP_CUSTOM0, DP_DPHY_SYM32, id), \ 342 SRI_ARR(DP_DPHY_SYM32_TP_CUSTOM1, DP_DPHY_SYM32, id), \ 343 SRI_ARR(DP_DPHY_SYM32_TP_CUSTOM2, DP_DPHY_SYM32, id), \ 344 SRI_ARR(DP_DPHY_SYM32_TP_CUSTOM3, DP_DPHY_SYM32, id), \ 345 SRI_ARR(DP_DPHY_SYM32_TP_CUSTOM4, DP_DPHY_SYM32, id), \ 346 SRI_ARR(DP_DPHY_SYM32_TP_CUSTOM5, DP_DPHY_SYM32, id), \ 347 SRI_ARR(DP_DPHY_SYM32_TP_CUSTOM6, DP_DPHY_SYM32, id), \ 348 SRI_ARR(DP_DPHY_SYM32_TP_CUSTOM7, DP_DPHY_SYM32, id), \ 349 SRI_ARR(DP_DPHY_SYM32_TP_CUSTOM8, DP_DPHY_SYM32, id), \ 350 SRI_ARR(DP_DPHY_SYM32_TP_CUSTOM9, DP_DPHY_SYM32, id), \ 351 SRI_ARR(DP_DPHY_SYM32_TP_CUSTOM10, DP_DPHY_SYM32, id), \ 352 SRI_ARR(DP_DPHY_SYM32_SAT_VC0, DP_DPHY_SYM32, id), \ 353 SRI_ARR(DP_DPHY_SYM32_SAT_VC1, DP_DPHY_SYM32, id), \ 354 SRI_ARR(DP_DPHY_SYM32_SAT_VC2, DP_DPHY_SYM32, id), \ 355 SRI_ARR(DP_DPHY_SYM32_SAT_VC3, DP_DPHY_SYM32, id), \ 356 SRI_ARR(DP_DPHY_SYM32_VC_RATE_CNTL0, DP_DPHY_SYM32, id), \ 357 SRI_ARR(DP_DPHY_SYM32_VC_RATE_CNTL1, DP_DPHY_SYM32, id), \ 358 SRI_ARR(DP_DPHY_SYM32_VC_RATE_CNTL2, DP_DPHY_SYM32, id), \ 359 SRI_ARR(DP_DPHY_SYM32_VC_RATE_CNTL3, DP_DPHY_SYM32, id), \ 360 SRI_ARR(DP_DPHY_SYM32_SAT_UPDATE, DP_DPHY_SYM32, id) \ 361 ) 362 363 /* DPP */ 364 #define DPP_REG_LIST_DCN30_COMMON_RI(id) \ 365 ( \ 366 SRI_ARR(CM_DEALPHA, CM, id), SRI_ARR(CM_MEM_PWR_STATUS, CM, id), \ 367 SRI_ARR(CM_BIAS_CR_R, CM, id), SRI_ARR(CM_BIAS_Y_G_CB_B, CM, id), \ 368 SRI_ARR(PRE_DEGAM, CNVC_CFG, id), SRI_ARR(CM_GAMCOR_CONTROL, CM, id), \ 369 SRI_ARR(CM_GAMCOR_LUT_CONTROL, CM, id), \ 370 SRI_ARR(CM_GAMCOR_LUT_INDEX, CM, id), \ 371 SRI_ARR(CM_GAMCOR_LUT_INDEX, CM, id), \ 372 SRI_ARR(CM_GAMCOR_LUT_DATA, CM, id), \ 373 SRI_ARR(CM_GAMCOR_RAMB_START_CNTL_B, CM, id), \ 374 SRI_ARR(CM_GAMCOR_RAMB_START_CNTL_G, CM, id), \ 375 SRI_ARR(CM_GAMCOR_RAMB_START_CNTL_R, CM, id), \ 376 SRI_ARR(CM_GAMCOR_RAMB_START_SLOPE_CNTL_B, CM, id), \ 377 SRI_ARR(CM_GAMCOR_RAMB_START_SLOPE_CNTL_G, CM, id), \ 378 SRI_ARR(CM_GAMCOR_RAMB_START_SLOPE_CNTL_R, CM, id), \ 379 SRI_ARR(CM_GAMCOR_RAMB_END_CNTL1_B, CM, id), \ 380 SRI_ARR(CM_GAMCOR_RAMB_END_CNTL2_B, CM, id), \ 381 SRI_ARR(CM_GAMCOR_RAMB_END_CNTL1_G, CM, id), \ 382 SRI_ARR(CM_GAMCOR_RAMB_END_CNTL2_G, CM, id), \ 383 SRI_ARR(CM_GAMCOR_RAMB_END_CNTL1_R, CM, id), \ 384 SRI_ARR(CM_GAMCOR_RAMB_END_CNTL2_R, CM, id), \ 385 SRI_ARR(CM_GAMCOR_RAMB_REGION_0_1, CM, id), \ 386 SRI_ARR(CM_GAMCOR_RAMB_REGION_32_33, CM, id), \ 387 SRI_ARR(CM_GAMCOR_RAMB_OFFSET_B, CM, id), \ 388 SRI_ARR(CM_GAMCOR_RAMB_OFFSET_G, CM, id), \ 389 SRI_ARR(CM_GAMCOR_RAMB_OFFSET_R, CM, id), \ 390 SRI_ARR(CM_GAMCOR_RAMB_START_BASE_CNTL_B, CM, id), \ 391 SRI_ARR(CM_GAMCOR_RAMB_START_BASE_CNTL_G, CM, id), \ 392 SRI_ARR(CM_GAMCOR_RAMB_START_BASE_CNTL_R, CM, id), \ 393 SRI_ARR(CM_GAMCOR_RAMA_START_CNTL_B, CM, id), \ 394 SRI_ARR(CM_GAMCOR_RAMA_START_CNTL_G, CM, id), \ 395 SRI_ARR(CM_GAMCOR_RAMA_START_CNTL_R, CM, id), \ 396 SRI_ARR(CM_GAMCOR_RAMA_START_SLOPE_CNTL_B, CM, id), \ 397 SRI_ARR(CM_GAMCOR_RAMA_START_SLOPE_CNTL_G, CM, id), \ 398 SRI_ARR(CM_GAMCOR_RAMA_START_SLOPE_CNTL_R, CM, id), \ 399 SRI_ARR(CM_GAMCOR_RAMA_END_CNTL1_B, CM, id), \ 400 SRI_ARR(CM_GAMCOR_RAMA_END_CNTL2_B, CM, id), \ 401 SRI_ARR(CM_GAMCOR_RAMA_END_CNTL1_G, CM, id), \ 402 SRI_ARR(CM_GAMCOR_RAMA_END_CNTL2_G, CM, id), \ 403 SRI_ARR(CM_GAMCOR_RAMA_END_CNTL1_R, CM, id), \ 404 SRI_ARR(CM_GAMCOR_RAMA_END_CNTL2_R, CM, id), \ 405 SRI_ARR(CM_GAMCOR_RAMA_REGION_0_1, CM, id), \ 406 SRI_ARR(CM_GAMCOR_RAMA_REGION_32_33, CM, id), \ 407 SRI_ARR(CM_GAMCOR_RAMA_OFFSET_B, CM, id), \ 408 SRI_ARR(CM_GAMCOR_RAMA_OFFSET_G, CM, id), \ 409 SRI_ARR(CM_GAMCOR_RAMA_OFFSET_R, CM, id), \ 410 SRI_ARR(CM_GAMCOR_RAMA_START_BASE_CNTL_B, CM, id), \ 411 SRI_ARR(CM_GAMCOR_RAMA_START_BASE_CNTL_G, CM, id), \ 412 SRI_ARR(CM_GAMCOR_RAMA_START_BASE_CNTL_R, CM, id), \ 413 SRI_ARR(CM_GAMUT_REMAP_CONTROL, CM, id), \ 414 SRI_ARR(CM_GAMUT_REMAP_C11_C12, CM, id), \ 415 SRI_ARR(CM_GAMUT_REMAP_C13_C14, CM, id), \ 416 SRI_ARR(CM_GAMUT_REMAP_C21_C22, CM, id), \ 417 SRI_ARR(CM_GAMUT_REMAP_C23_C24, CM, id), \ 418 SRI_ARR(CM_GAMUT_REMAP_C31_C32, CM, id), \ 419 SRI_ARR(CM_GAMUT_REMAP_C33_C34, CM, id), \ 420 SRI_ARR(CM_GAMUT_REMAP_B_C11_C12, CM, id), \ 421 SRI_ARR(CM_GAMUT_REMAP_B_C13_C14, CM, id), \ 422 SRI_ARR(CM_GAMUT_REMAP_B_C21_C22, CM, id), \ 423 SRI_ARR(CM_GAMUT_REMAP_B_C23_C24, CM, id), \ 424 SRI_ARR(CM_GAMUT_REMAP_B_C31_C32, CM, id), \ 425 SRI_ARR(CM_GAMUT_REMAP_B_C33_C34, CM, id), \ 426 SRI_ARR(DSCL_EXT_OVERSCAN_LEFT_RIGHT, DSCL, id), \ 427 SRI_ARR(DSCL_EXT_OVERSCAN_TOP_BOTTOM, DSCL, id), \ 428 SRI_ARR(OTG_H_BLANK, DSCL, id), SRI_ARR(OTG_V_BLANK, DSCL, id), \ 429 SRI_ARR(SCL_MODE, DSCL, id), SRI_ARR(LB_DATA_FORMAT, DSCL, id), \ 430 SRI_ARR(LB_MEMORY_CTRL, DSCL, id), SRI_ARR(DSCL_AUTOCAL, DSCL, id), \ 431 SRI_ARR(SCL_TAP_CONTROL, DSCL, id), \ 432 SRI_ARR(SCL_COEF_RAM_TAP_SELECT, DSCL, id), \ 433 SRI_ARR(SCL_COEF_RAM_TAP_DATA, DSCL, id), \ 434 SRI_ARR(DSCL_2TAP_CONTROL, DSCL, id), SRI_ARR(MPC_SIZE, DSCL, id), \ 435 SRI_ARR(SCL_HORZ_FILTER_SCALE_RATIO, DSCL, id), \ 436 SRI_ARR(SCL_VERT_FILTER_SCALE_RATIO, DSCL, id), \ 437 SRI_ARR(SCL_HORZ_FILTER_SCALE_RATIO_C, DSCL, id), \ 438 SRI_ARR(SCL_VERT_FILTER_SCALE_RATIO_C, DSCL, id), \ 439 SRI_ARR(SCL_HORZ_FILTER_INIT, DSCL, id), \ 440 SRI_ARR(SCL_HORZ_FILTER_INIT_C, DSCL, id), \ 441 SRI_ARR(SCL_VERT_FILTER_INIT, DSCL, id), \ 442 SRI_ARR(SCL_VERT_FILTER_INIT_C, DSCL, id), \ 443 SRI_ARR(RECOUT_START, DSCL, id), SRI_ARR(RECOUT_SIZE, DSCL, id), \ 444 SRI_ARR(PRE_DEALPHA, CNVC_CFG, id), SRI_ARR(PRE_REALPHA, CNVC_CFG, id), \ 445 SRI_ARR(PRE_CSC_MODE, CNVC_CFG, id), \ 446 SRI_ARR(PRE_CSC_C11_C12, CNVC_CFG, id), \ 447 SRI_ARR(PRE_CSC_C33_C34, CNVC_CFG, id), \ 448 SRI_ARR(PRE_CSC_B_C11_C12, CNVC_CFG, id), \ 449 SRI_ARR(PRE_CSC_B_C33_C34, CNVC_CFG, id), \ 450 SRI_ARR(CM_POST_CSC_CONTROL, CM, id), \ 451 SRI_ARR(CM_POST_CSC_C11_C12, CM, id), \ 452 SRI_ARR(CM_POST_CSC_C33_C34, CM, id), \ 453 SRI_ARR(CM_POST_CSC_B_C11_C12, CM, id), \ 454 SRI_ARR(CM_POST_CSC_B_C33_C34, CM, id), \ 455 SRI_ARR(CM_MEM_PWR_CTRL, CM, id), SRI_ARR(CM_CONTROL, CM, id), \ 456 SRI_ARR(FORMAT_CONTROL, CNVC_CFG, id), \ 457 SRI_ARR(CNVC_SURFACE_PIXEL_FORMAT, CNVC_CFG, id), \ 458 SRI_ARR(CURSOR0_CONTROL, CNVC_CUR, id), \ 459 SRI_ARR(CURSOR0_COLOR0, CNVC_CUR, id), \ 460 SRI_ARR(CURSOR0_COLOR1, CNVC_CUR, id), \ 461 SRI_ARR(CURSOR0_FP_SCALE_BIAS, CNVC_CUR, id), \ 462 SRI_ARR(DPP_CONTROL, DPP_TOP, id), SRI_ARR(CM_HDR_MULT_COEF, CM, id), \ 463 SRI_ARR(CURSOR_CONTROL, CURSOR0_, id), \ 464 SRI_ARR(ALPHA_2BIT_LUT, CNVC_CFG, id), \ 465 SRI_ARR(FCNV_FP_BIAS_R, CNVC_CFG, id), \ 466 SRI_ARR(FCNV_FP_BIAS_G, CNVC_CFG, id), \ 467 SRI_ARR(FCNV_FP_BIAS_B, CNVC_CFG, id), \ 468 SRI_ARR(FCNV_FP_SCALE_R, CNVC_CFG, id), \ 469 SRI_ARR(FCNV_FP_SCALE_G, CNVC_CFG, id), \ 470 SRI_ARR(FCNV_FP_SCALE_B, CNVC_CFG, id), \ 471 SRI_ARR(COLOR_KEYER_CONTROL, CNVC_CFG, id), \ 472 SRI_ARR(COLOR_KEYER_ALPHA, CNVC_CFG, id), \ 473 SRI_ARR(COLOR_KEYER_RED, CNVC_CFG, id), \ 474 SRI_ARR(COLOR_KEYER_GREEN, CNVC_CFG, id), \ 475 SRI_ARR(COLOR_KEYER_BLUE, CNVC_CFG, id), \ 476 SRI_ARR(CURSOR_CONTROL, CURSOR0_, id), \ 477 SRI_ARR(OBUF_MEM_PWR_CTRL, DSCL, id), \ 478 SRI_ARR(DSCL_MEM_PWR_STATUS, DSCL, id), \ 479 SRI_ARR(DSCL_MEM_PWR_CTRL, DSCL, id) \ 480 ) 481 482 /* OPP */ 483 #define OPP_REG_LIST_DCN_RI(id) \ 484 ( \ 485 SRI_ARR(FMT_BIT_DEPTH_CONTROL, FMT, id), SRI_ARR(FMT_CONTROL, FMT, id), \ 486 SRI_ARR(FMT_DITHER_RAND_R_SEED, FMT, id), \ 487 SRI_ARR(FMT_DITHER_RAND_G_SEED, FMT, id), \ 488 SRI_ARR(FMT_DITHER_RAND_B_SEED, FMT, id), \ 489 SRI_ARR(FMT_CLAMP_CNTL, FMT, id), \ 490 SRI_ARR(FMT_DYNAMIC_EXP_CNTL, FMT, id), \ 491 SRI_ARR(FMT_MAP420_MEMORY_CONTROL, FMT, id), \ 492 SRI_ARR(OPPBUF_CONTROL, OPPBUF, id), \ 493 SRI_ARR(OPPBUF_3D_PARAMETERS_0, OPPBUF, id), \ 494 SRI_ARR(OPPBUF_3D_PARAMETERS_1, OPPBUF, id), \ 495 SRI_ARR(OPP_PIPE_CONTROL, OPP_PIPE, id) \ 496 ) 497 498 #define OPP_REG_LIST_DCN10_RI(id) OPP_REG_LIST_DCN_RI(id) 499 500 #define OPP_DPG_REG_LIST_RI(id) \ 501 ( \ 502 SRI_ARR(DPG_CONTROL, DPG, id), SRI_ARR(DPG_DIMENSIONS, DPG, id), \ 503 SRI_ARR(DPG_OFFSET_SEGMENT, DPG, id), SRI_ARR(DPG_COLOUR_B_CB, DPG, id), \ 504 SRI_ARR(DPG_COLOUR_G_Y, DPG, id), SRI_ARR(DPG_COLOUR_R_CR, DPG, id), \ 505 SRI_ARR(DPG_RAMP_CONTROL, DPG, id), SRI_ARR(DPG_STATUS, DPG, id) \ 506 ) 507 508 #define OPP_REG_LIST_DCN30_RI(id) \ 509 ( \ 510 OPP_REG_LIST_DCN10_RI(id), OPP_DPG_REG_LIST_RI(id), \ 511 SRI_ARR(FMT_422_CONTROL, FMT, id) \ 512 ) 513 514 /* Aux engine regs */ 515 #define AUX_COMMON_REG_LIST0_RI(id) \ 516 ( \ 517 SRI_ARR(AUX_CONTROL, DP_AUX, id), SRI_ARR(AUX_ARB_CONTROL, DP_AUX, id), \ 518 SRI_ARR(AUX_SW_DATA, DP_AUX, id), SRI_ARR(AUX_SW_CONTROL, DP_AUX, id), \ 519 SRI_ARR(AUX_INTERRUPT_CONTROL, DP_AUX, id), \ 520 SRI_ARR(AUX_DPHY_RX_CONTROL1, DP_AUX, id), \ 521 SRI_ARR(AUX_SW_STATUS, DP_AUX, id) \ 522 ) 523 524 /* DWBC */ 525 #define DWBC_COMMON_REG_LIST_DCN30_RI(id) \ 526 ( \ 527 SR_ARR(DWB_ENABLE_CLK_CTRL, id), SR_ARR(DWB_MEM_PWR_CTRL, id), \ 528 SR_ARR(FC_MODE_CTRL, id), SR_ARR(FC_FLOW_CTRL, id), \ 529 SR_ARR(FC_WINDOW_START, id), SR_ARR(FC_WINDOW_SIZE, id), \ 530 SR_ARR(FC_SOURCE_SIZE, id), SR_ARR(DWB_UPDATE_CTRL, id), \ 531 SR_ARR(DWB_CRC_CTRL, id), SR_ARR(DWB_CRC_MASK_R_G, id), \ 532 SR_ARR(DWB_CRC_MASK_B_A, id), SR_ARR(DWB_CRC_VAL_R_G, id), \ 533 SR_ARR(DWB_CRC_VAL_B_A, id), SR_ARR(DWB_OUT_CTRL, id), \ 534 SR_ARR(DWB_MMHUBBUB_BACKPRESSURE_CNT_EN, id), \ 535 SR_ARR(DWB_MMHUBBUB_BACKPRESSURE_CNT, id), \ 536 SR_ARR(DWB_HOST_READ_CONTROL, id), SR_ARR(DWB_SOFT_RESET, id), \ 537 SR_ARR(DWB_HDR_MULT_COEF, id), SR_ARR(DWB_GAMUT_REMAP_MODE, id), \ 538 SR_ARR(DWB_GAMUT_REMAP_COEF_FORMAT, id), \ 539 SR_ARR(DWB_GAMUT_REMAPA_C11_C12, id), \ 540 SR_ARR(DWB_GAMUT_REMAPA_C13_C14, id), \ 541 SR_ARR(DWB_GAMUT_REMAPA_C21_C22, id), \ 542 SR_ARR(DWB_GAMUT_REMAPA_C23_C24, id), \ 543 SR_ARR(DWB_GAMUT_REMAPA_C31_C32, id), \ 544 SR_ARR(DWB_GAMUT_REMAPA_C33_C34, id), \ 545 SR_ARR(DWB_GAMUT_REMAPB_C11_C12, id), \ 546 SR_ARR(DWB_GAMUT_REMAPB_C13_C14, id), \ 547 SR_ARR(DWB_GAMUT_REMAPB_C21_C22, id), \ 548 SR_ARR(DWB_GAMUT_REMAPB_C23_C24, id), \ 549 SR_ARR(DWB_GAMUT_REMAPB_C31_C32, id), \ 550 SR_ARR(DWB_GAMUT_REMAPB_C33_C34, id), SR_ARR(DWB_OGAM_CONTROL, id), \ 551 SR_ARR(DWB_OGAM_LUT_INDEX, id), SR_ARR(DWB_OGAM_LUT_DATA, id), \ 552 SR_ARR(DWB_OGAM_LUT_CONTROL, id), \ 553 SR_ARR(DWB_OGAM_RAMA_START_CNTL_B, id), \ 554 SR_ARR(DWB_OGAM_RAMA_START_CNTL_G, id), \ 555 SR_ARR(DWB_OGAM_RAMA_START_CNTL_R, id), \ 556 SR_ARR(DWB_OGAM_RAMA_START_BASE_CNTL_B, id), \ 557 SR_ARR(DWB_OGAM_RAMA_START_SLOPE_CNTL_B, id), \ 558 SR_ARR(DWB_OGAM_RAMA_START_BASE_CNTL_G, id), \ 559 SR_ARR(DWB_OGAM_RAMA_START_SLOPE_CNTL_G, id), \ 560 SR_ARR(DWB_OGAM_RAMA_START_BASE_CNTL_R, id), \ 561 SR_ARR(DWB_OGAM_RAMA_START_SLOPE_CNTL_R, id), \ 562 SR_ARR(DWB_OGAM_RAMA_END_CNTL1_B, id), \ 563 SR_ARR(DWB_OGAM_RAMA_END_CNTL2_B, id), \ 564 SR_ARR(DWB_OGAM_RAMA_END_CNTL1_G, id), \ 565 SR_ARR(DWB_OGAM_RAMA_END_CNTL2_G, id), \ 566 SR_ARR(DWB_OGAM_RAMA_END_CNTL1_R, id), \ 567 SR_ARR(DWB_OGAM_RAMA_END_CNTL2_R, id), \ 568 SR_ARR(DWB_OGAM_RAMA_OFFSET_B, id), SR_ARR(DWB_OGAM_RAMA_OFFSET_G, id), \ 569 SR_ARR(DWB_OGAM_RAMA_OFFSET_R, id), \ 570 SR_ARR(DWB_OGAM_RAMA_REGION_0_1, id), \ 571 SR_ARR(DWB_OGAM_RAMA_REGION_2_3, id), \ 572 SR_ARR(DWB_OGAM_RAMA_REGION_4_5, id), \ 573 SR_ARR(DWB_OGAM_RAMA_REGION_6_7, id), \ 574 SR_ARR(DWB_OGAM_RAMA_REGION_8_9, id), \ 575 SR_ARR(DWB_OGAM_RAMA_REGION_10_11, id), \ 576 SR_ARR(DWB_OGAM_RAMA_REGION_12_13, id), \ 577 SR_ARR(DWB_OGAM_RAMA_REGION_14_15, id), \ 578 SR_ARR(DWB_OGAM_RAMA_REGION_16_17, id), \ 579 SR_ARR(DWB_OGAM_RAMA_REGION_18_19, id), \ 580 SR_ARR(DWB_OGAM_RAMA_REGION_20_21, id), \ 581 SR_ARR(DWB_OGAM_RAMA_REGION_22_23, id), \ 582 SR_ARR(DWB_OGAM_RAMA_REGION_24_25, id), \ 583 SR_ARR(DWB_OGAM_RAMA_REGION_26_27, id), \ 584 SR_ARR(DWB_OGAM_RAMA_REGION_28_29, id), \ 585 SR_ARR(DWB_OGAM_RAMA_REGION_30_31, id), \ 586 SR_ARR(DWB_OGAM_RAMA_REGION_32_33, id), \ 587 SR_ARR(DWB_OGAM_RAMB_START_CNTL_B, id), \ 588 SR_ARR(DWB_OGAM_RAMB_START_CNTL_G, id), \ 589 SR_ARR(DWB_OGAM_RAMB_START_CNTL_R, id), \ 590 SR_ARR(DWB_OGAM_RAMB_START_BASE_CNTL_B, id), \ 591 SR_ARR(DWB_OGAM_RAMB_START_SLOPE_CNTL_B, id), \ 592 SR_ARR(DWB_OGAM_RAMB_START_BASE_CNTL_G, id), \ 593 SR_ARR(DWB_OGAM_RAMB_START_SLOPE_CNTL_G, id), \ 594 SR_ARR(DWB_OGAM_RAMB_START_BASE_CNTL_R, id), \ 595 SR_ARR(DWB_OGAM_RAMB_START_SLOPE_CNTL_R, id), \ 596 SR_ARR(DWB_OGAM_RAMB_END_CNTL1_B, id), \ 597 SR_ARR(DWB_OGAM_RAMB_END_CNTL2_B, id), \ 598 SR_ARR(DWB_OGAM_RAMB_END_CNTL1_G, id), \ 599 SR_ARR(DWB_OGAM_RAMB_END_CNTL2_G, id), \ 600 SR_ARR(DWB_OGAM_RAMB_END_CNTL1_R, id), \ 601 SR_ARR(DWB_OGAM_RAMB_END_CNTL2_R, id), \ 602 SR_ARR(DWB_OGAM_RAMB_OFFSET_B, id), SR_ARR(DWB_OGAM_RAMB_OFFSET_G, id), \ 603 SR_ARR(DWB_OGAM_RAMB_OFFSET_R, id), \ 604 SR_ARR(DWB_OGAM_RAMB_REGION_0_1, id), \ 605 SR_ARR(DWB_OGAM_RAMB_REGION_2_3, id), \ 606 SR_ARR(DWB_OGAM_RAMB_REGION_4_5, id), \ 607 SR_ARR(DWB_OGAM_RAMB_REGION_6_7, id), \ 608 SR_ARR(DWB_OGAM_RAMB_REGION_8_9, id), \ 609 SR_ARR(DWB_OGAM_RAMB_REGION_10_11, id), \ 610 SR_ARR(DWB_OGAM_RAMB_REGION_12_13, id), \ 611 SR_ARR(DWB_OGAM_RAMB_REGION_14_15, id), \ 612 SR_ARR(DWB_OGAM_RAMB_REGION_16_17, id), \ 613 SR_ARR(DWB_OGAM_RAMB_REGION_18_19, id), \ 614 SR_ARR(DWB_OGAM_RAMB_REGION_20_21, id), \ 615 SR_ARR(DWB_OGAM_RAMB_REGION_22_23, id), \ 616 SR_ARR(DWB_OGAM_RAMB_REGION_24_25, id), \ 617 SR_ARR(DWB_OGAM_RAMB_REGION_26_27, id), \ 618 SR_ARR(DWB_OGAM_RAMB_REGION_28_29, id), \ 619 SR_ARR(DWB_OGAM_RAMB_REGION_30_31, id), \ 620 SR_ARR(DWB_OGAM_RAMB_REGION_32_33, id) \ 621 ) 622 623 /* MCIF */ 624 625 #define MCIF_WB_COMMON_REG_LIST_DCN32_RI(inst) \ 626 ( \ 627 SRI2_ARR(MCIF_WB_BUFMGR_SW_CONTROL, MCIF_WB, inst), \ 628 SRI2_ARR(MCIF_WB_BUFMGR_STATUS, MCIF_WB, inst), \ 629 SRI2_ARR(MCIF_WB_BUF_PITCH, MCIF_WB, inst), \ 630 SRI2_ARR(MCIF_WB_BUF_1_STATUS, MCIF_WB, inst), \ 631 SRI2_ARR(MCIF_WB_BUF_1_STATUS2, MCIF_WB, inst), \ 632 SRI2_ARR(MCIF_WB_BUF_2_STATUS, MCIF_WB, inst), \ 633 SRI2_ARR(MCIF_WB_BUF_2_STATUS2, MCIF_WB, inst), \ 634 SRI2_ARR(MCIF_WB_BUF_3_STATUS, MCIF_WB, inst), \ 635 SRI2_ARR(MCIF_WB_BUF_3_STATUS2, MCIF_WB, inst), \ 636 SRI2_ARR(MCIF_WB_BUF_4_STATUS, MCIF_WB, inst), \ 637 SRI2_ARR(MCIF_WB_BUF_4_STATUS2, MCIF_WB, inst), \ 638 SRI2_ARR(MCIF_WB_ARBITRATION_CONTROL, MCIF_WB, inst), \ 639 SRI2_ARR(MCIF_WB_SCLK_CHANGE, MCIF_WB, inst), \ 640 SRI2_ARR(MCIF_WB_TEST_DEBUG_INDEX, MCIF_WB, inst), \ 641 SRI2_ARR(MCIF_WB_TEST_DEBUG_DATA, MCIF_WB, inst), \ 642 SRI2_ARR(MCIF_WB_BUF_1_ADDR_Y, MCIF_WB, inst), \ 643 SRI2_ARR(MCIF_WB_BUF_1_ADDR_C, MCIF_WB, inst), \ 644 SRI2_ARR(MCIF_WB_BUF_2_ADDR_Y, MCIF_WB, inst), \ 645 SRI2_ARR(MCIF_WB_BUF_2_ADDR_C, MCIF_WB, inst), \ 646 SRI2_ARR(MCIF_WB_BUF_3_ADDR_Y, MCIF_WB, inst), \ 647 SRI2_ARR(MCIF_WB_BUF_3_ADDR_C, MCIF_WB, inst), \ 648 SRI2_ARR(MCIF_WB_BUF_4_ADDR_Y, MCIF_WB, inst), \ 649 SRI2_ARR(MCIF_WB_BUF_4_ADDR_C, MCIF_WB, inst), \ 650 SRI2_ARR(MCIF_WB_BUFMGR_VCE_CONTROL, MCIF_WB, inst), \ 651 SRI2_ARR(MCIF_WB_NB_PSTATE_LATENCY_WATERMARK, MMHUBBUB, inst), \ 652 SRI2_ARR(MCIF_WB_NB_PSTATE_CONTROL, MCIF_WB, inst), \ 653 SRI2_ARR(MCIF_WB_WATERMARK, MMHUBBUB, inst), \ 654 SRI2_ARR(MCIF_WB_CLOCK_GATER_CONTROL, MCIF_WB, inst), \ 655 SRI2_ARR(MCIF_WB_SELF_REFRESH_CONTROL, MCIF_WB, inst), \ 656 SRI2_ARR(MULTI_LEVEL_QOS_CTRL, MCIF_WB, inst), \ 657 SRI2_ARR(MCIF_WB_SECURITY_LEVEL, MCIF_WB, inst), \ 658 SRI2_ARR(MCIF_WB_BUF_LUMA_SIZE, MCIF_WB, inst), \ 659 SRI2_ARR(MCIF_WB_BUF_CHROMA_SIZE, MCIF_WB, inst), \ 660 SRI2_ARR(MCIF_WB_BUF_1_ADDR_Y_HIGH, MCIF_WB, inst), \ 661 SRI2_ARR(MCIF_WB_BUF_1_ADDR_C_HIGH, MCIF_WB, inst), \ 662 SRI2_ARR(MCIF_WB_BUF_2_ADDR_Y_HIGH, MCIF_WB, inst), \ 663 SRI2_ARR(MCIF_WB_BUF_2_ADDR_C_HIGH, MCIF_WB, inst), \ 664 SRI2_ARR(MCIF_WB_BUF_3_ADDR_Y_HIGH, MCIF_WB, inst), \ 665 SRI2_ARR(MCIF_WB_BUF_3_ADDR_C_HIGH, MCIF_WB, inst), \ 666 SRI2_ARR(MCIF_WB_BUF_4_ADDR_Y_HIGH, MCIF_WB, inst), \ 667 SRI2_ARR(MCIF_WB_BUF_4_ADDR_C_HIGH, MCIF_WB, inst), \ 668 SRI2_ARR(MCIF_WB_BUF_1_RESOLUTION, MCIF_WB, inst), \ 669 SRI2_ARR(MCIF_WB_BUF_2_RESOLUTION, MCIF_WB, inst), \ 670 SRI2_ARR(MCIF_WB_BUF_3_RESOLUTION, MCIF_WB, inst), \ 671 SRI2_ARR(MCIF_WB_BUF_4_RESOLUTION, MCIF_WB, inst), \ 672 SRI2_ARR(MMHUBBUB_MEM_PWR_CNTL, MMHUBBUB, inst), \ 673 SRI2_ARR(MMHUBBUB_WARMUP_ADDR_REGION, MMHUBBUB, inst), \ 674 SRI2_ARR(MMHUBBUB_WARMUP_BASE_ADDR_HIGH, MMHUBBUB, inst), \ 675 SRI2_ARR(MMHUBBUB_WARMUP_BASE_ADDR_LOW, MMHUBBUB, inst), \ 676 SRI2_ARR(MMHUBBUB_WARMUP_CONTROL_STATUS, MMHUBBUB, inst) \ 677 ) 678 679 /* DSC */ 680 681 #define DSC_REG_LIST_DCN20_RI(id) \ 682 ( \ 683 SRI_ARR(DSC_TOP_CONTROL, DSC_TOP, id), \ 684 SRI_ARR(DSC_DEBUG_CONTROL, DSC_TOP, id), \ 685 SRI_ARR(DSCC_CONFIG0, DSCC, id), SRI_ARR(DSCC_CONFIG1, DSCC, id), \ 686 SRI_ARR(DSCC_STATUS, DSCC, id), \ 687 SRI_ARR(DSCC_INTERRUPT_CONTROL_STATUS, DSCC, id), \ 688 SRI_ARR(DSCC_PPS_CONFIG0, DSCC, id), \ 689 SRI_ARR(DSCC_PPS_CONFIG1, DSCC, id), \ 690 SRI_ARR(DSCC_PPS_CONFIG2, DSCC, id), \ 691 SRI_ARR(DSCC_PPS_CONFIG3, DSCC, id), \ 692 SRI_ARR(DSCC_PPS_CONFIG4, DSCC, id), \ 693 SRI_ARR(DSCC_PPS_CONFIG5, DSCC, id), \ 694 SRI_ARR(DSCC_PPS_CONFIG6, DSCC, id), \ 695 SRI_ARR(DSCC_PPS_CONFIG7, DSCC, id), \ 696 SRI_ARR(DSCC_PPS_CONFIG8, DSCC, id), \ 697 SRI_ARR(DSCC_PPS_CONFIG9, DSCC, id), \ 698 SRI_ARR(DSCC_PPS_CONFIG10, DSCC, id), \ 699 SRI_ARR(DSCC_PPS_CONFIG11, DSCC, id), \ 700 SRI_ARR(DSCC_PPS_CONFIG12, DSCC, id), \ 701 SRI_ARR(DSCC_PPS_CONFIG13, DSCC, id), \ 702 SRI_ARR(DSCC_PPS_CONFIG14, DSCC, id), \ 703 SRI_ARR(DSCC_PPS_CONFIG15, DSCC, id), \ 704 SRI_ARR(DSCC_PPS_CONFIG16, DSCC, id), \ 705 SRI_ARR(DSCC_PPS_CONFIG17, DSCC, id), \ 706 SRI_ARR(DSCC_PPS_CONFIG18, DSCC, id), \ 707 SRI_ARR(DSCC_PPS_CONFIG19, DSCC, id), \ 708 SRI_ARR(DSCC_PPS_CONFIG20, DSCC, id), \ 709 SRI_ARR(DSCC_PPS_CONFIG21, DSCC, id), \ 710 SRI_ARR(DSCC_PPS_CONFIG22, DSCC, id), \ 711 SRI_ARR(DSCC_MEM_POWER_CONTROL, DSCC, id), \ 712 SRI_ARR(DSCC_R_Y_SQUARED_ERROR_LOWER, DSCC, id), \ 713 SRI_ARR(DSCC_R_Y_SQUARED_ERROR_UPPER, DSCC, id), \ 714 SRI_ARR(DSCC_G_CB_SQUARED_ERROR_LOWER, DSCC, id), \ 715 SRI_ARR(DSCC_G_CB_SQUARED_ERROR_UPPER, DSCC, id), \ 716 SRI_ARR(DSCC_B_CR_SQUARED_ERROR_LOWER, DSCC, id), \ 717 SRI_ARR(DSCC_B_CR_SQUARED_ERROR_UPPER, DSCC, id), \ 718 SRI_ARR(DSCC_MAX_ABS_ERROR0, DSCC, id), \ 719 SRI_ARR(DSCC_MAX_ABS_ERROR1, DSCC, id), \ 720 SRI_ARR(DSCC_RATE_BUFFER0_MAX_FULLNESS_LEVEL, DSCC, id), \ 721 SRI_ARR(DSCC_RATE_BUFFER1_MAX_FULLNESS_LEVEL, DSCC, id), \ 722 SRI_ARR(DSCC_RATE_BUFFER2_MAX_FULLNESS_LEVEL, DSCC, id), \ 723 SRI_ARR(DSCC_RATE_BUFFER3_MAX_FULLNESS_LEVEL, DSCC, id), \ 724 SRI_ARR(DSCC_RATE_CONTROL_BUFFER0_MAX_FULLNESS_LEVEL, DSCC, id), \ 725 SRI_ARR(DSCC_RATE_CONTROL_BUFFER1_MAX_FULLNESS_LEVEL, DSCC, id), \ 726 SRI_ARR(DSCC_RATE_CONTROL_BUFFER2_MAX_FULLNESS_LEVEL, DSCC, id), \ 727 SRI_ARR(DSCC_RATE_CONTROL_BUFFER3_MAX_FULLNESS_LEVEL, DSCC, id), \ 728 SRI_ARR(DSCCIF_CONFIG0, DSCCIF, id), \ 729 SRI_ARR(DSCCIF_CONFIG1, DSCCIF, id), \ 730 SRI_ARR(DSCRM_DSC_FORWARD_CONFIG, DSCRM, id) \ 731 ) 732 733 /* MPC */ 734 735 #define MPC_DWB_MUX_REG_LIST_DCN3_0_RI(inst) \ 736 SRII_DWB(DWB_MUX, MUX, MPC_DWB, inst) 737 738 #define MPC_MCM_REG_LIST_DCN32_RI(inst) \ 739 ( \ 740 SRII(MPCC_MCM_SHAPER_CONTROL, MPCC_MCM, inst), \ 741 SRII(MPCC_MCM_SHAPER_OFFSET_R, MPCC_MCM, inst), \ 742 SRII(MPCC_MCM_SHAPER_OFFSET_G, MPCC_MCM, inst), \ 743 SRII(MPCC_MCM_SHAPER_OFFSET_B, MPCC_MCM, inst), \ 744 SRII(MPCC_MCM_SHAPER_SCALE_R, MPCC_MCM, inst), \ 745 SRII(MPCC_MCM_SHAPER_SCALE_G_B, MPCC_MCM, inst), \ 746 SRII(MPCC_MCM_SHAPER_LUT_INDEX, MPCC_MCM, inst), \ 747 SRII(MPCC_MCM_SHAPER_LUT_DATA, MPCC_MCM, inst), \ 748 SRII(MPCC_MCM_SHAPER_LUT_WRITE_EN_MASK, MPCC_MCM, inst), \ 749 SRII(MPCC_MCM_SHAPER_RAMA_START_CNTL_B, MPCC_MCM, inst), \ 750 SRII(MPCC_MCM_SHAPER_RAMA_START_CNTL_G, MPCC_MCM, inst), \ 751 SRII(MPCC_MCM_SHAPER_RAMA_START_CNTL_R, MPCC_MCM, inst), \ 752 SRII(MPCC_MCM_SHAPER_RAMA_END_CNTL_B, MPCC_MCM, inst), \ 753 SRII(MPCC_MCM_SHAPER_RAMA_END_CNTL_G, MPCC_MCM, inst), \ 754 SRII(MPCC_MCM_SHAPER_RAMA_END_CNTL_R, MPCC_MCM, inst), \ 755 SRII(MPCC_MCM_SHAPER_RAMA_REGION_0_1, MPCC_MCM, inst), \ 756 SRII(MPCC_MCM_SHAPER_RAMA_REGION_2_3, MPCC_MCM, inst), \ 757 SRII(MPCC_MCM_SHAPER_RAMA_REGION_4_5, MPCC_MCM, inst), \ 758 SRII(MPCC_MCM_SHAPER_RAMA_REGION_6_7, MPCC_MCM, inst), \ 759 SRII(MPCC_MCM_SHAPER_RAMA_REGION_8_9, MPCC_MCM, inst), \ 760 SRII(MPCC_MCM_SHAPER_RAMA_REGION_10_11, MPCC_MCM, inst), \ 761 SRII(MPCC_MCM_SHAPER_RAMA_REGION_12_13, MPCC_MCM, inst), \ 762 SRII(MPCC_MCM_SHAPER_RAMA_REGION_14_15, MPCC_MCM, inst), \ 763 SRII(MPCC_MCM_SHAPER_RAMA_REGION_16_17, MPCC_MCM, inst), \ 764 SRII(MPCC_MCM_SHAPER_RAMA_REGION_18_19, MPCC_MCM, inst), \ 765 SRII(MPCC_MCM_SHAPER_RAMA_REGION_20_21, MPCC_MCM, inst), \ 766 SRII(MPCC_MCM_SHAPER_RAMA_REGION_22_23, MPCC_MCM, inst), \ 767 SRII(MPCC_MCM_SHAPER_RAMA_REGION_24_25, MPCC_MCM, inst), \ 768 SRII(MPCC_MCM_SHAPER_RAMA_REGION_26_27, MPCC_MCM, inst), \ 769 SRII(MPCC_MCM_SHAPER_RAMA_REGION_28_29, MPCC_MCM, inst), \ 770 SRII(MPCC_MCM_SHAPER_RAMA_REGION_30_31, MPCC_MCM, inst), \ 771 SRII(MPCC_MCM_SHAPER_RAMA_REGION_32_33, MPCC_MCM, inst), \ 772 SRII(MPCC_MCM_SHAPER_RAMB_START_CNTL_B, MPCC_MCM, inst), \ 773 SRII(MPCC_MCM_SHAPER_RAMB_START_CNTL_G, MPCC_MCM, inst), \ 774 SRII(MPCC_MCM_SHAPER_RAMB_START_CNTL_R, MPCC_MCM, inst), \ 775 SRII(MPCC_MCM_SHAPER_RAMB_END_CNTL_B, MPCC_MCM, inst), \ 776 SRII(MPCC_MCM_SHAPER_RAMB_END_CNTL_G, MPCC_MCM, inst), \ 777 SRII(MPCC_MCM_SHAPER_RAMB_END_CNTL_R, MPCC_MCM, inst), \ 778 SRII(MPCC_MCM_SHAPER_RAMB_REGION_0_1, MPCC_MCM, inst), \ 779 SRII(MPCC_MCM_SHAPER_RAMB_REGION_2_3, MPCC_MCM, inst), \ 780 SRII(MPCC_MCM_SHAPER_RAMB_REGION_4_5, MPCC_MCM, inst), \ 781 SRII(MPCC_MCM_SHAPER_RAMB_REGION_6_7, MPCC_MCM, inst), \ 782 SRII(MPCC_MCM_SHAPER_RAMB_REGION_8_9, MPCC_MCM, inst), \ 783 SRII(MPCC_MCM_SHAPER_RAMB_REGION_10_11, MPCC_MCM, inst), \ 784 SRII(MPCC_MCM_SHAPER_RAMB_REGION_12_13, MPCC_MCM, inst), \ 785 SRII(MPCC_MCM_SHAPER_RAMB_REGION_14_15, MPCC_MCM, inst), \ 786 SRII(MPCC_MCM_SHAPER_RAMB_REGION_16_17, MPCC_MCM, inst), \ 787 SRII(MPCC_MCM_SHAPER_RAMB_REGION_18_19, MPCC_MCM, inst), \ 788 SRII(MPCC_MCM_SHAPER_RAMB_REGION_20_21, MPCC_MCM, inst), \ 789 SRII(MPCC_MCM_SHAPER_RAMB_REGION_22_23, MPCC_MCM, inst), \ 790 SRII(MPCC_MCM_SHAPER_RAMB_REGION_24_25, MPCC_MCM, inst), \ 791 SRII(MPCC_MCM_SHAPER_RAMB_REGION_26_27, MPCC_MCM, inst), \ 792 SRII(MPCC_MCM_SHAPER_RAMB_REGION_28_29, MPCC_MCM, inst), \ 793 SRII(MPCC_MCM_SHAPER_RAMB_REGION_30_31, MPCC_MCM, inst), \ 794 SRII(MPCC_MCM_SHAPER_RAMB_REGION_32_33, MPCC_MCM, inst), \ 795 SRII(MPCC_MCM_3DLUT_MODE, MPCC_MCM, inst), \ 796 SRII(MPCC_MCM_3DLUT_INDEX, MPCC_MCM, inst), \ 797 SRII(MPCC_MCM_3DLUT_DATA, MPCC_MCM, inst), \ 798 SRII(MPCC_MCM_3DLUT_DATA_30BIT, MPCC_MCM, inst), \ 799 SRII(MPCC_MCM_3DLUT_READ_WRITE_CONTROL, MPCC_MCM, inst), \ 800 SRII(MPCC_MCM_3DLUT_OUT_NORM_FACTOR, MPCC_MCM, inst), \ 801 SRII(MPCC_MCM_3DLUT_OUT_OFFSET_R, MPCC_MCM, inst), \ 802 SRII(MPCC_MCM_3DLUT_OUT_OFFSET_G, MPCC_MCM, inst), \ 803 SRII(MPCC_MCM_3DLUT_OUT_OFFSET_B, MPCC_MCM, inst), \ 804 SRII(MPCC_MCM_MEM_PWR_CTRL, MPCC_MCM, inst) \ 805 ) 806 807 #define MPC_OUT_MUX_COMMON_REG_LIST_DCN1_0_RI(inst) \ 808 ( \ 809 SRII(MUX, MPC_OUT, inst), VUPDATE_SRII(CUR, VUPDATE_LOCK_SET, inst) \ 810 ) 811 812 #define MPC_OUT_MUX_REG_LIST_DCN3_0_RI(inst) \ 813 ( \ 814 MPC_OUT_MUX_COMMON_REG_LIST_DCN1_0_RI(inst), SRII(CSC_MODE, MPC_OUT, inst), \ 815 SRII(CSC_C11_C12_A, MPC_OUT, inst), SRII(CSC_C33_C34_A, MPC_OUT, inst), \ 816 SRII(CSC_C11_C12_B, MPC_OUT, inst), SRII(CSC_C33_C34_B, MPC_OUT, inst), \ 817 SRII(DENORM_CONTROL, MPC_OUT, inst), \ 818 SRII(DENORM_CLAMP_G_Y, MPC_OUT, inst), \ 819 SRII(DENORM_CLAMP_B_CB, MPC_OUT, inst), SR(MPC_OUT_CSC_COEF_FORMAT) \ 820 ) 821 822 #define MPC_COMMON_REG_LIST_DCN1_0_RI(inst) \ 823 ( \ 824 SRII(MPCC_TOP_SEL, MPCC, inst), SRII(MPCC_BOT_SEL, MPCC, inst), \ 825 SRII(MPCC_CONTROL, MPCC, inst), SRII(MPCC_STATUS, MPCC, inst), \ 826 SRII(MPCC_OPP_ID, MPCC, inst), SRII(MPCC_BG_G_Y, MPCC, inst), \ 827 SRII(MPCC_BG_R_CR, MPCC, inst), SRII(MPCC_BG_B_CB, MPCC, inst), \ 828 SRII(MPCC_SM_CONTROL, MPCC, inst), \ 829 SRII(MPCC_UPDATE_LOCK_SEL, MPCC, inst) \ 830 ) 831 832 #define MPC_REG_LIST_DCN3_0_RI(inst) \ 833 ( \ 834 MPC_COMMON_REG_LIST_DCN1_0_RI(inst), SRII(MPCC_TOP_GAIN, MPCC, inst), \ 835 SRII(MPCC_BOT_GAIN_INSIDE, MPCC, inst), \ 836 SRII(MPCC_BOT_GAIN_OUTSIDE, MPCC, inst), \ 837 SRII(MPCC_MEM_PWR_CTRL, MPCC, inst), \ 838 SRII(MPCC_OGAM_LUT_INDEX, MPCC_OGAM, inst), \ 839 SRII(MPCC_OGAM_LUT_DATA, MPCC_OGAM, inst), \ 840 SRII(MPCC_GAMUT_REMAP_COEF_FORMAT, MPCC_OGAM, inst), \ 841 SRII(MPCC_GAMUT_REMAP_MODE, MPCC_OGAM, inst), \ 842 SRII(MPC_GAMUT_REMAP_C11_C12_A, MPCC_OGAM, inst), \ 843 SRII(MPC_GAMUT_REMAP_C33_C34_A, MPCC_OGAM, inst), \ 844 SRII(MPC_GAMUT_REMAP_C11_C12_B, MPCC_OGAM, inst), \ 845 SRII(MPC_GAMUT_REMAP_C33_C34_B, MPCC_OGAM, inst), \ 846 SRII(MPCC_OGAM_RAMA_START_CNTL_B, MPCC_OGAM, inst), \ 847 SRII(MPCC_OGAM_RAMA_START_CNTL_G, MPCC_OGAM, inst), \ 848 SRII(MPCC_OGAM_RAMA_START_CNTL_R, MPCC_OGAM, inst), \ 849 SRII(MPCC_OGAM_RAMA_START_SLOPE_CNTL_B, MPCC_OGAM, inst), \ 850 SRII(MPCC_OGAM_RAMA_START_SLOPE_CNTL_G, MPCC_OGAM, inst), \ 851 SRII(MPCC_OGAM_RAMA_START_SLOPE_CNTL_R, MPCC_OGAM, inst), \ 852 SRII(MPCC_OGAM_RAMA_END_CNTL1_B, MPCC_OGAM, inst), \ 853 SRII(MPCC_OGAM_RAMA_END_CNTL2_B, MPCC_OGAM, inst), \ 854 SRII(MPCC_OGAM_RAMA_END_CNTL1_G, MPCC_OGAM, inst), \ 855 SRII(MPCC_OGAM_RAMA_END_CNTL2_G, MPCC_OGAM, inst), \ 856 SRII(MPCC_OGAM_RAMA_END_CNTL1_R, MPCC_OGAM, inst), \ 857 SRII(MPCC_OGAM_RAMA_END_CNTL2_R, MPCC_OGAM, inst), \ 858 SRII(MPCC_OGAM_RAMA_REGION_0_1, MPCC_OGAM, inst), \ 859 SRII(MPCC_OGAM_RAMA_REGION_32_33, MPCC_OGAM, inst), \ 860 SRII(MPCC_OGAM_RAMA_OFFSET_B, MPCC_OGAM, inst), \ 861 SRII(MPCC_OGAM_RAMA_OFFSET_G, MPCC_OGAM, inst), \ 862 SRII(MPCC_OGAM_RAMA_OFFSET_R, MPCC_OGAM, inst), \ 863 SRII(MPCC_OGAM_RAMA_START_BASE_CNTL_B, MPCC_OGAM, inst), \ 864 SRII(MPCC_OGAM_RAMA_START_BASE_CNTL_G, MPCC_OGAM, inst), \ 865 SRII(MPCC_OGAM_RAMA_START_BASE_CNTL_R, MPCC_OGAM, inst), \ 866 SRII(MPCC_OGAM_RAMB_START_CNTL_B, MPCC_OGAM, inst), \ 867 SRII(MPCC_OGAM_RAMB_START_CNTL_G, MPCC_OGAM, inst), \ 868 SRII(MPCC_OGAM_RAMB_START_CNTL_R, MPCC_OGAM, inst), \ 869 SRII(MPCC_OGAM_RAMB_START_SLOPE_CNTL_B, MPCC_OGAM, inst), \ 870 SRII(MPCC_OGAM_RAMB_START_SLOPE_CNTL_G, MPCC_OGAM, inst), \ 871 SRII(MPCC_OGAM_RAMB_START_SLOPE_CNTL_R, MPCC_OGAM, inst), \ 872 SRII(MPCC_OGAM_RAMB_END_CNTL1_B, MPCC_OGAM, inst), \ 873 SRII(MPCC_OGAM_RAMB_END_CNTL2_B, MPCC_OGAM, inst), \ 874 SRII(MPCC_OGAM_RAMB_END_CNTL1_G, MPCC_OGAM, inst), \ 875 SRII(MPCC_OGAM_RAMB_END_CNTL2_G, MPCC_OGAM, inst), \ 876 SRII(MPCC_OGAM_RAMB_END_CNTL1_R, MPCC_OGAM, inst), \ 877 SRII(MPCC_OGAM_RAMB_END_CNTL2_R, MPCC_OGAM, inst), \ 878 SRII(MPCC_OGAM_RAMB_REGION_0_1, MPCC_OGAM, inst), \ 879 SRII(MPCC_OGAM_RAMB_REGION_32_33, MPCC_OGAM, inst), \ 880 SRII(MPCC_OGAM_RAMB_OFFSET_B, MPCC_OGAM, inst), \ 881 SRII(MPCC_OGAM_RAMB_OFFSET_G, MPCC_OGAM, inst), \ 882 SRII(MPCC_OGAM_RAMB_OFFSET_R, MPCC_OGAM, inst), \ 883 SRII(MPCC_OGAM_RAMB_START_BASE_CNTL_B, MPCC_OGAM, inst), \ 884 SRII(MPCC_OGAM_RAMB_START_BASE_CNTL_G, MPCC_OGAM, inst), \ 885 SRII(MPCC_OGAM_RAMB_START_BASE_CNTL_R, MPCC_OGAM, inst), \ 886 SRII(MPCC_OGAM_CONTROL, MPCC_OGAM, inst), \ 887 SRII(MPCC_OGAM_LUT_CONTROL, MPCC_OGAM, inst) \ 888 ) 889 890 /* OPTC */ 891 892 #define OPTC_COMMON_REG_LIST_DCN3_2_RI(inst) \ 893 ( \ 894 SRI_ARR(OTG_VSTARTUP_PARAM, OTG, inst), \ 895 SRI_ARR(OTG_VUPDATE_PARAM, OTG, inst), \ 896 SRI_ARR(OTG_VREADY_PARAM, OTG, inst), \ 897 SRI_ARR(OTG_MASTER_UPDATE_LOCK, OTG, inst), \ 898 SRI_ARR(OTG_GLOBAL_CONTROL0, OTG, inst), \ 899 SRI_ARR(OTG_GLOBAL_CONTROL1, OTG, inst), \ 900 SRI_ARR(OTG_GLOBAL_CONTROL2, OTG, inst), \ 901 SRI_ARR(OTG_GLOBAL_CONTROL4, OTG, inst), \ 902 SRI_ARR(OTG_DOUBLE_BUFFER_CONTROL, OTG, inst), \ 903 SRI_ARR(OTG_H_TOTAL, OTG, inst), \ 904 SRI_ARR(OTG_H_BLANK_START_END, OTG, inst), \ 905 SRI_ARR(OTG_H_SYNC_A, OTG, inst), SRI_ARR(OTG_H_SYNC_A_CNTL, OTG, inst), \ 906 SRI_ARR(OTG_H_TIMING_CNTL, OTG, inst), SRI_ARR(OTG_V_TOTAL, OTG, inst), \ 907 SRI_ARR(OTG_V_BLANK_START_END, OTG, inst), \ 908 SRI_ARR(OTG_V_SYNC_A, OTG, inst), SRI_ARR(OTG_V_SYNC_A_CNTL, OTG, inst), \ 909 SRI_ARR(OTG_CONTROL, OTG, inst), SRI_ARR(OTG_STEREO_CONTROL, OTG, inst), \ 910 SRI_ARR(OTG_3D_STRUCTURE_CONTROL, OTG, inst), \ 911 SRI_ARR(OTG_STEREO_STATUS, OTG, inst), \ 912 SRI_ARR(OTG_V_TOTAL_MAX, OTG, inst), \ 913 SRI_ARR(OTG_V_TOTAL_MIN, OTG, inst), \ 914 SRI_ARR(OTG_V_TOTAL_CONTROL, OTG, inst), \ 915 SRI_ARR(OTG_TRIGA_CNTL, OTG, inst), \ 916 SRI_ARR(OTG_FORCE_COUNT_NOW_CNTL, OTG, inst), \ 917 SRI_ARR(OTG_STATIC_SCREEN_CONTROL, OTG, inst), \ 918 SRI_ARR(OTG_STATUS_FRAME_COUNT, OTG, inst), \ 919 SRI_ARR(OTG_STATUS, OTG, inst), SRI_ARR(OTG_STATUS_POSITION, OTG, inst), \ 920 SRI_ARR(OTG_NOM_VERT_POSITION, OTG, inst), \ 921 SRI_ARR(OTG_M_CONST_DTO0, OTG, inst), \ 922 SRI_ARR(OTG_M_CONST_DTO1, OTG, inst), \ 923 SRI_ARR(OTG_CLOCK_CONTROL, OTG, inst), \ 924 SRI_ARR(OTG_VERTICAL_INTERRUPT0_CONTROL, OTG, inst), \ 925 SRI_ARR(OTG_VERTICAL_INTERRUPT0_POSITION, OTG, inst), \ 926 SRI_ARR(OTG_VERTICAL_INTERRUPT1_CONTROL, OTG, inst), \ 927 SRI_ARR(OTG_VERTICAL_INTERRUPT1_POSITION, OTG, inst), \ 928 SRI_ARR(OTG_VERTICAL_INTERRUPT2_CONTROL, OTG, inst), \ 929 SRI_ARR(OTG_VERTICAL_INTERRUPT2_POSITION, OTG, inst), \ 930 SRI_ARR(OPTC_INPUT_CLOCK_CONTROL, ODM, inst), \ 931 SRI_ARR(OPTC_DATA_SOURCE_SELECT, ODM, inst), \ 932 SRI_ARR(OPTC_INPUT_GLOBAL_CONTROL, ODM, inst), \ 933 SRI_ARR(CONTROL, VTG, inst), SRI_ARR(OTG_VERT_SYNC_CONTROL, OTG, inst), \ 934 SRI_ARR(OTG_GSL_CONTROL, OTG, inst), SRI_ARR(OTG_CRC_CNTL, OTG, inst), \ 935 SRI_ARR(OTG_CRC0_DATA_RG, OTG, inst), \ 936 SRI_ARR(OTG_CRC0_DATA_B, OTG, inst), \ 937 SRI_ARR(OTG_CRC0_WINDOWA_X_CONTROL, OTG, inst), \ 938 SRI_ARR(OTG_CRC0_WINDOWA_Y_CONTROL, OTG, inst), \ 939 SRI_ARR(OTG_CRC0_WINDOWB_X_CONTROL, OTG, inst), \ 940 SRI_ARR(OTG_CRC0_WINDOWB_Y_CONTROL, OTG, inst), \ 941 SR_ARR(GSL_SOURCE_SELECT, inst), \ 942 SRI_ARR(OTG_TRIGA_MANUAL_TRIG, OTG, inst), \ 943 SRI_ARR(OTG_GLOBAL_CONTROL1, OTG, inst), \ 944 SRI_ARR(OTG_GLOBAL_CONTROL2, OTG, inst), \ 945 SRI_ARR(OTG_GSL_WINDOW_X, OTG, inst), \ 946 SRI_ARR(OTG_GSL_WINDOW_Y, OTG, inst), \ 947 SRI_ARR(OTG_VUPDATE_KEEPOUT, OTG, inst), \ 948 SRI_ARR(OTG_DSC_START_POSITION, OTG, inst), \ 949 SRI_ARR(OTG_DRR_TRIGGER_WINDOW, OTG, inst), \ 950 SRI_ARR(OTG_DRR_V_TOTAL_CHANGE, OTG, inst), \ 951 SRI_ARR(OPTC_DATA_FORMAT_CONTROL, ODM, inst), \ 952 SRI_ARR(OPTC_BYTES_PER_PIXEL, ODM, inst), \ 953 SRI_ARR(OPTC_WIDTH_CONTROL, ODM, inst), \ 954 SRI_ARR(OPTC_MEMORY_CONFIG, ODM, inst), \ 955 SRI_ARR(OTG_DRR_CONTROL, OTG, inst) \ 956 ) 957 958 /* HUBP */ 959 960 #define HUBP_REG_LIST_DCN_VM_RI(id) \ 961 ( \ 962 SRI_ARR(NOM_PARAMETERS_0, HUBPREQ, id), \ 963 SRI_ARR(NOM_PARAMETERS_1, HUBPREQ, id), \ 964 SRI_ARR(NOM_PARAMETERS_2, HUBPREQ, id), \ 965 SRI_ARR(NOM_PARAMETERS_3, HUBPREQ, id), \ 966 SRI_ARR(DCN_VM_MX_L1_TLB_CNTL, HUBPREQ, id) \ 967 ) 968 969 #define HUBP_REG_LIST_DCN_RI(id) \ 970 ( \ 971 SRI_ARR(DCHUBP_CNTL, HUBP, id), SRI_ARR(HUBPREQ_DEBUG_DB, HUBP, id), \ 972 SRI_ARR(HUBPREQ_DEBUG, HUBP, id), SRI_ARR(DCSURF_ADDR_CONFIG, HUBP, id), \ 973 SRI_ARR(DCSURF_TILING_CONFIG, HUBP, id), \ 974 SRI_ARR(DCSURF_SURFACE_PITCH, HUBPREQ, id), \ 975 SRI_ARR(DCSURF_SURFACE_PITCH_C, HUBPREQ, id), \ 976 SRI_ARR(DCSURF_SURFACE_CONFIG, HUBP, id), \ 977 SRI_ARR(DCSURF_FLIP_CONTROL, HUBPREQ, id), \ 978 SRI_ARR(DCSURF_PRI_VIEWPORT_DIMENSION, HUBP, id), \ 979 SRI_ARR(DCSURF_PRI_VIEWPORT_START, HUBP, id), \ 980 SRI_ARR(DCSURF_SEC_VIEWPORT_DIMENSION, HUBP, id), \ 981 SRI_ARR(DCSURF_SEC_VIEWPORT_START, HUBP, id), \ 982 SRI_ARR(DCSURF_PRI_VIEWPORT_DIMENSION_C, HUBP, id), \ 983 SRI_ARR(DCSURF_PRI_VIEWPORT_START_C, HUBP, id), \ 984 SRI_ARR(DCSURF_SEC_VIEWPORT_DIMENSION_C, HUBP, id), \ 985 SRI_ARR(DCSURF_SEC_VIEWPORT_START_C, HUBP, id), \ 986 SRI_ARR(DCSURF_PRIMARY_SURFACE_ADDRESS_HIGH, HUBPREQ, id), \ 987 SRI_ARR(DCSURF_PRIMARY_SURFACE_ADDRESS, HUBPREQ, id), \ 988 SRI_ARR(DCSURF_SECONDARY_SURFACE_ADDRESS_HIGH, HUBPREQ, id), \ 989 SRI_ARR(DCSURF_SECONDARY_SURFACE_ADDRESS, HUBPREQ, id), \ 990 SRI_ARR(DCSURF_PRIMARY_META_SURFACE_ADDRESS_HIGH, HUBPREQ, id), \ 991 SRI_ARR(DCSURF_PRIMARY_META_SURFACE_ADDRESS, HUBPREQ, id), \ 992 SRI_ARR(DCSURF_SECONDARY_META_SURFACE_ADDRESS_HIGH, HUBPREQ, id), \ 993 SRI_ARR(DCSURF_SECONDARY_META_SURFACE_ADDRESS, HUBPREQ, id), \ 994 SRI_ARR(DCSURF_PRIMARY_SURFACE_ADDRESS_HIGH_C, HUBPREQ, id), \ 995 SRI_ARR(DCSURF_PRIMARY_SURFACE_ADDRESS_C, HUBPREQ, id), \ 996 SRI_ARR(DCSURF_SECONDARY_SURFACE_ADDRESS_HIGH_C, HUBPREQ, id), \ 997 SRI_ARR(DCSURF_SECONDARY_SURFACE_ADDRESS_C, HUBPREQ, id), \ 998 SRI_ARR(DCSURF_PRIMARY_META_SURFACE_ADDRESS_HIGH_C, HUBPREQ, id), \ 999 SRI_ARR(DCSURF_PRIMARY_META_SURFACE_ADDRESS_C, HUBPREQ, id), \ 1000 SRI_ARR(DCSURF_SECONDARY_META_SURFACE_ADDRESS_HIGH_C, HUBPREQ, id), \ 1001 SRI_ARR(DCSURF_SECONDARY_META_SURFACE_ADDRESS_C, HUBPREQ, id), \ 1002 SRI_ARR(DCSURF_SURFACE_INUSE, HUBPREQ, id), \ 1003 SRI_ARR(DCSURF_SURFACE_INUSE_HIGH, HUBPREQ, id), \ 1004 SRI_ARR(DCSURF_SURFACE_INUSE_C, HUBPREQ, id), \ 1005 SRI_ARR(DCSURF_SURFACE_INUSE_HIGH_C, HUBPREQ, id), \ 1006 SRI_ARR(DCSURF_SURFACE_EARLIEST_INUSE, HUBPREQ, id), \ 1007 SRI_ARR(DCSURF_SURFACE_EARLIEST_INUSE_HIGH, HUBPREQ, id), \ 1008 SRI_ARR(DCSURF_SURFACE_EARLIEST_INUSE_C, HUBPREQ, id), \ 1009 SRI_ARR(DCSURF_SURFACE_EARLIEST_INUSE_HIGH_C, HUBPREQ, id), \ 1010 SRI_ARR(DCSURF_SURFACE_CONTROL, HUBPREQ, id), \ 1011 SRI_ARR(DCSURF_SURFACE_FLIP_INTERRUPT, HUBPREQ, id), \ 1012 SRI_ARR(HUBPRET_CONTROL, HUBPRET, id), \ 1013 SRI_ARR(HUBPRET_READ_LINE_STATUS, HUBPRET, id), \ 1014 SRI_ARR(DCN_EXPANSION_MODE, HUBPREQ, id), \ 1015 SRI_ARR(DCHUBP_REQ_SIZE_CONFIG, HUBP, id), \ 1016 SRI_ARR(DCHUBP_REQ_SIZE_CONFIG_C, HUBP, id), \ 1017 SRI_ARR(BLANK_OFFSET_0, HUBPREQ, id), \ 1018 SRI_ARR(BLANK_OFFSET_1, HUBPREQ, id), \ 1019 SRI_ARR(DST_DIMENSIONS, HUBPREQ, id), \ 1020 SRI_ARR(DST_AFTER_SCALER, HUBPREQ, id), \ 1021 SRI_ARR(VBLANK_PARAMETERS_0, HUBPREQ, id), \ 1022 SRI_ARR(REF_FREQ_TO_PIX_FREQ, HUBPREQ, id), \ 1023 SRI_ARR(VBLANK_PARAMETERS_1, HUBPREQ, id), \ 1024 SRI_ARR(VBLANK_PARAMETERS_3, HUBPREQ, id), \ 1025 SRI_ARR(NOM_PARAMETERS_4, HUBPREQ, id), \ 1026 SRI_ARR(NOM_PARAMETERS_5, HUBPREQ, id), \ 1027 SRI_ARR(PER_LINE_DELIVERY_PRE, HUBPREQ, id), \ 1028 SRI_ARR(PER_LINE_DELIVERY, HUBPREQ, id), \ 1029 SRI_ARR(VBLANK_PARAMETERS_2, HUBPREQ, id), \ 1030 SRI_ARR(VBLANK_PARAMETERS_4, HUBPREQ, id), \ 1031 SRI_ARR(NOM_PARAMETERS_6, HUBPREQ, id), \ 1032 SRI_ARR(NOM_PARAMETERS_7, HUBPREQ, id), \ 1033 SRI_ARR(DCN_TTU_QOS_WM, HUBPREQ, id), \ 1034 SRI_ARR(DCN_GLOBAL_TTU_CNTL, HUBPREQ, id), \ 1035 SRI_ARR(DCN_SURF0_TTU_CNTL0, HUBPREQ, id), \ 1036 SRI_ARR(DCN_SURF0_TTU_CNTL1, HUBPREQ, id), \ 1037 SRI_ARR(DCN_SURF1_TTU_CNTL0, HUBPREQ, id), \ 1038 SRI_ARR(DCN_SURF1_TTU_CNTL1, HUBPREQ, id), \ 1039 SRI_ARR(DCN_CUR0_TTU_CNTL0, HUBPREQ, id), \ 1040 SRI_ARR(DCN_CUR0_TTU_CNTL1, HUBPREQ, id), \ 1041 SRI_ARR(HUBP_CLK_CNTL, HUBP, id) \ 1042 ) 1043 1044 #define HUBP_REG_LIST_DCN2_COMMON_RI(id) \ 1045 ( \ 1046 HUBP_REG_LIST_DCN_RI(id), HUBP_REG_LIST_DCN_VM_RI(id), \ 1047 SRI_ARR(PREFETCH_SETTINGS, HUBPREQ, id), \ 1048 SRI_ARR(PREFETCH_SETTINGS_C, HUBPREQ, id), \ 1049 SRI_ARR(DCN_VM_SYSTEM_APERTURE_LOW_ADDR, HUBPREQ, id), \ 1050 SRI_ARR(DCN_VM_SYSTEM_APERTURE_HIGH_ADDR, HUBPREQ, id), \ 1051 SRI_ARR(CURSOR_SETTINGS, HUBPREQ, id), \ 1052 SRI_ARR(CURSOR_SURFACE_ADDRESS_HIGH, CURSOR0_, id), \ 1053 SRI_ARR(CURSOR_SURFACE_ADDRESS, CURSOR0_, id), \ 1054 SRI_ARR(CURSOR_SIZE, CURSOR0_, id), \ 1055 SRI_ARR(CURSOR_CONTROL, CURSOR0_, id), \ 1056 SRI_ARR(CURSOR_POSITION, CURSOR0_, id), \ 1057 SRI_ARR(CURSOR_HOT_SPOT, CURSOR0_, id), \ 1058 SRI_ARR(CURSOR_DST_OFFSET, CURSOR0_, id), \ 1059 SRI_ARR(DMDATA_ADDRESS_HIGH, CURSOR0_, id), \ 1060 SRI_ARR(DMDATA_ADDRESS_LOW, CURSOR0_, id), \ 1061 SRI_ARR(DMDATA_CNTL, CURSOR0_, id), \ 1062 SRI_ARR(DMDATA_SW_CNTL, CURSOR0_, id), \ 1063 SRI_ARR(DMDATA_QOS_CNTL, CURSOR0_, id), \ 1064 SRI_ARR(DMDATA_SW_DATA, CURSOR0_, id), \ 1065 SRI_ARR(DMDATA_STATUS, CURSOR0_, id), \ 1066 SRI_ARR(FLIP_PARAMETERS_0, HUBPREQ, id), \ 1067 SRI_ARR(FLIP_PARAMETERS_1, HUBPREQ, id), \ 1068 SRI_ARR(FLIP_PARAMETERS_2, HUBPREQ, id), \ 1069 SRI_ARR(DCN_CUR1_TTU_CNTL0, HUBPREQ, id), \ 1070 SRI_ARR(DCN_CUR1_TTU_CNTL1, HUBPREQ, id), \ 1071 SRI_ARR(DCSURF_FLIP_CONTROL2, HUBPREQ, id), \ 1072 SRI_ARR(VMID_SETTINGS_0, HUBPREQ, id) \ 1073 ) 1074 1075 #define HUBP_REG_LIST_DCN21_RI(id) \ 1076 ( \ 1077 HUBP_REG_LIST_DCN2_COMMON_RI(id), SRI_ARR(FLIP_PARAMETERS_3, HUBPREQ, id), \ 1078 SRI_ARR(FLIP_PARAMETERS_4, HUBPREQ, id), \ 1079 SRI_ARR(FLIP_PARAMETERS_5, HUBPREQ, id), \ 1080 SRI_ARR(FLIP_PARAMETERS_6, HUBPREQ, id), \ 1081 SRI_ARR(VBLANK_PARAMETERS_5, HUBPREQ, id), \ 1082 SRI_ARR(VBLANK_PARAMETERS_6, HUBPREQ, id) \ 1083 ) 1084 1085 #define HUBP_REG_LIST_DCN30_RI(id) \ 1086 ( \ 1087 HUBP_REG_LIST_DCN21_RI(id), SRI_ARR(DCN_DMDATA_VM_CNTL, HUBPREQ, id) \ 1088 ) 1089 1090 #define HUBP_REG_LIST_DCN32_RI(id) \ 1091 ( \ 1092 HUBP_REG_LIST_DCN30_RI(id), SRI_ARR(DCHUBP_MALL_CONFIG, HUBP, id), \ 1093 SRI_ARR(DCHUBP_VMPG_CONFIG, HUBP, id), \ 1094 SRI_ARR(UCLK_PSTATE_FORCE, HUBPREQ, id) \ 1095 ) 1096 1097 /* HUBBUB */ 1098 1099 #define HUBBUB_REG_LIST_DCN32_RI(id) \ 1100 ( \ 1101 SR(DCHUBBUB_ARB_DATA_URGENCY_WATERMARK_A), \ 1102 SR(DCHUBBUB_ARB_DATA_URGENCY_WATERMARK_B), \ 1103 SR(DCHUBBUB_ARB_DATA_URGENCY_WATERMARK_C), \ 1104 SR(DCHUBBUB_ARB_DATA_URGENCY_WATERMARK_D), \ 1105 SR(DCHUBBUB_ARB_WATERMARK_CHANGE_CNTL), \ 1106 SR(DCHUBBUB_ARB_DRAM_STATE_CNTL), SR(DCHUBBUB_ARB_SAT_LEVEL), \ 1107 SR(DCHUBBUB_ARB_DF_REQ_OUTSTAND), SR(DCHUBBUB_GLOBAL_TIMER_CNTL), \ 1108 SR(DCHUBBUB_SOFT_RESET), SR(DCHUBBUB_CRC_CTRL), \ 1109 SR(DCN_VM_FB_LOCATION_BASE), SR(DCN_VM_FB_LOCATION_TOP), \ 1110 SR(DCN_VM_FB_OFFSET), SR(DCN_VM_AGP_BOT), SR(DCN_VM_AGP_TOP), \ 1111 SR(DCN_VM_AGP_BASE), HUBBUB_SR_WATERMARK_REG_LIST(), \ 1112 SR(DCHUBBUB_ARB_FRAC_URG_BW_NOM_A), SR(DCHUBBUB_ARB_FRAC_URG_BW_NOM_B), \ 1113 SR(DCHUBBUB_ARB_FRAC_URG_BW_NOM_C), SR(DCHUBBUB_ARB_FRAC_URG_BW_NOM_D), \ 1114 SR(DCHUBBUB_ARB_FRAC_URG_BW_FLIP_A), \ 1115 SR(DCHUBBUB_ARB_FRAC_URG_BW_FLIP_B), \ 1116 SR(DCHUBBUB_ARB_FRAC_URG_BW_FLIP_C), \ 1117 SR(DCHUBBUB_ARB_FRAC_URG_BW_FLIP_D), \ 1118 SR(DCHUBBUB_ARB_REFCYC_PER_TRIP_TO_MEMORY_A), \ 1119 SR(DCHUBBUB_ARB_REFCYC_PER_TRIP_TO_MEMORY_B), \ 1120 SR(DCHUBBUB_ARB_REFCYC_PER_TRIP_TO_MEMORY_C), \ 1121 SR(DCHUBBUB_ARB_REFCYC_PER_TRIP_TO_MEMORY_D), SR(DCHUBBUB_DET0_CTRL), \ 1122 SR(DCHUBBUB_DET1_CTRL), SR(DCHUBBUB_DET2_CTRL), SR(DCHUBBUB_DET3_CTRL), \ 1123 SR(DCHUBBUB_COMPBUF_CTRL), SR(COMPBUF_RESERVED_SPACE), \ 1124 SR(DCHUBBUB_ARB_USR_RETRAINING_CNTL), \ 1125 SR(DCHUBBUB_ARB_USR_RETRAINING_WATERMARK_A), \ 1126 SR(DCHUBBUB_ARB_USR_RETRAINING_WATERMARK_B), \ 1127 SR(DCHUBBUB_ARB_USR_RETRAINING_WATERMARK_C), \ 1128 SR(DCHUBBUB_ARB_USR_RETRAINING_WATERMARK_D), \ 1129 SR(DCHUBBUB_ARB_UCLK_PSTATE_CHANGE_WATERMARK_A), \ 1130 SR(DCHUBBUB_ARB_UCLK_PSTATE_CHANGE_WATERMARK_B), \ 1131 SR(DCHUBBUB_ARB_UCLK_PSTATE_CHANGE_WATERMARK_C), \ 1132 SR(DCHUBBUB_ARB_UCLK_PSTATE_CHANGE_WATERMARK_D), \ 1133 SR(DCHUBBUB_ARB_FCLK_PSTATE_CHANGE_WATERMARK_A), \ 1134 SR(DCHUBBUB_ARB_FCLK_PSTATE_CHANGE_WATERMARK_B), \ 1135 SR(DCHUBBUB_ARB_FCLK_PSTATE_CHANGE_WATERMARK_C), \ 1136 SR(DCHUBBUB_ARB_FCLK_PSTATE_CHANGE_WATERMARK_D), \ 1137 SR(DCN_VM_FAULT_ADDR_MSB), SR(DCN_VM_FAULT_ADDR_LSB), \ 1138 SR(DCN_VM_FAULT_CNTL), SR(DCN_VM_FAULT_STATUS) \ 1139 ) 1140 1141 /* DCCG */ 1142 1143 #define DCCG_REG_LIST_DCN32_RI() \ 1144 ( \ 1145 SR(DPPCLK_DTO_CTRL), DCCG_SRII(DTO_PARAM, DPPCLK, 0), \ 1146 DCCG_SRII(DTO_PARAM, DPPCLK, 1), DCCG_SRII(DTO_PARAM, DPPCLK, 2), \ 1147 DCCG_SRII(DTO_PARAM, DPPCLK, 3), DCCG_SRII(CLOCK_CNTL, HDMICHARCLK, 0), \ 1148 SR(PHYASYMCLK_CLOCK_CNTL), SR(PHYBSYMCLK_CLOCK_CNTL), \ 1149 SR(PHYCSYMCLK_CLOCK_CNTL), SR(PHYDSYMCLK_CLOCK_CNTL), \ 1150 SR(PHYESYMCLK_CLOCK_CNTL), SR(DPSTREAMCLK_CNTL), SR(HDMISTREAMCLK_CNTL), \ 1151 SR(SYMCLK32_SE_CNTL), SR(SYMCLK32_LE_CNTL), \ 1152 DCCG_SRII(PIXEL_RATE_CNTL, OTG, 0), DCCG_SRII(PIXEL_RATE_CNTL, OTG, 1), \ 1153 DCCG_SRII(PIXEL_RATE_CNTL, OTG, 2), DCCG_SRII(PIXEL_RATE_CNTL, OTG, 3), \ 1154 DCCG_SRII(MODULO, DTBCLK_DTO, 0), DCCG_SRII(MODULO, DTBCLK_DTO, 1), \ 1155 DCCG_SRII(MODULO, DTBCLK_DTO, 2), DCCG_SRII(MODULO, DTBCLK_DTO, 3), \ 1156 DCCG_SRII(PHASE, DTBCLK_DTO, 0), DCCG_SRII(PHASE, DTBCLK_DTO, 1), \ 1157 DCCG_SRII(PHASE, DTBCLK_DTO, 2), DCCG_SRII(PHASE, DTBCLK_DTO, 3), \ 1158 SR(DCCG_AUDIO_DTBCLK_DTO_MODULO), SR(DCCG_AUDIO_DTBCLK_DTO_PHASE), \ 1159 SR(OTG_PIXEL_RATE_DIV), SR(DTBCLK_P_CNTL), SR(DCCG_AUDIO_DTO_SOURCE) \ 1160 ) 1161 1162 /* VMID */ 1163 #define DCN20_VMID_REG_LIST_RI(id) \ 1164 ( \ 1165 SRI_ARR(CNTL, DCN_VM_CONTEXT, id), \ 1166 SRI_ARR(PAGE_TABLE_BASE_ADDR_HI32, DCN_VM_CONTEXT, id), \ 1167 SRI_ARR(PAGE_TABLE_BASE_ADDR_LO32, DCN_VM_CONTEXT, id), \ 1168 SRI_ARR(PAGE_TABLE_START_ADDR_HI32, DCN_VM_CONTEXT, id), \ 1169 SRI_ARR(PAGE_TABLE_START_ADDR_LO32, DCN_VM_CONTEXT, id), \ 1170 SRI_ARR(PAGE_TABLE_END_ADDR_HI32, DCN_VM_CONTEXT, id), \ 1171 SRI_ARR(PAGE_TABLE_END_ADDR_LO32, DCN_VM_CONTEXT, id) \ 1172 ) 1173 1174 /* I2C HW */ 1175 1176 #define I2C_HW_ENGINE_COMMON_REG_LIST_RI(id) \ 1177 ( \ 1178 SRI_ARR(SETUP, DC_I2C_DDC, id), SRI_ARR(SPEED, DC_I2C_DDC, id), \ 1179 SRI_ARR(HW_STATUS, DC_I2C_DDC, id), SR_ARR(DC_I2C_ARBITRATION, id), \ 1180 SR_ARR(DC_I2C_CONTROL, id), SR_ARR(DC_I2C_SW_STATUS, id), \ 1181 SR_ARR(DC_I2C_TRANSACTION0, id), SR_ARR(DC_I2C_TRANSACTION1, id), \ 1182 SR_ARR(DC_I2C_TRANSACTION2, id), SR_ARR(DC_I2C_TRANSACTION3, id), \ 1183 SR_ARR(DC_I2C_DATA, id), SR_ARR(MICROSECOND_TIME_BASE_DIV, id) \ 1184 ) 1185 1186 #define I2C_HW_ENGINE_COMMON_REG_LIST_DCN30_RI(id) \ 1187 ( \ 1188 I2C_HW_ENGINE_COMMON_REG_LIST_RI(id), SR_ARR(DIO_MEM_PWR_CTRL, id), \ 1189 SR_ARR(DIO_MEM_PWR_STATUS, id) \ 1190 ) 1191 1192 #endif /* _DCN32_RESOURCE_H_ */ 1193