This commit removes code that are not used by display anymore.
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
        void (*stop_dp_info_packets)(
                struct stream_encoder *enc);
 
-       void (*reset_fifo)(
-               struct stream_encoder *enc
-       );
-
        void (*dp_blank)(
                struct dc_link *link,
                struct stream_encoder *enc);
 
                struct link_resource *link_res,
                struct dc_link_settings *link_settings);
 
-#if defined(CONFIG_DRM_AMD_DC_FP)
-struct hpo_dp_link_encoder *resource_get_hpo_dp_link_enc_for_det_lt(
-               const struct resource_context *res_ctx,
-               const struct resource_pool *pool,
-               const struct dc_link *link);
-#endif
-
 void reset_syncd_pipes_from_disabled_pipes(struct dc *dc,
        struct dc_state *context);
 
 
 {
        struct optc *optc1 = DCN10TG_FROM_TG(optc);
 
-       /* Set the min/max selectors unconditionally so that
-        * DMCUB fw may change OTG timings when necessary
-        * TODO: Remove the w/a after fixing the issue in DMCUB firmware
-        */
-       REG_UPDATE_4(OTG_V_TOTAL_CONTROL,
-                                OTG_V_TOTAL_MIN_SEL, 1,
-                                OTG_V_TOTAL_MAX_SEL, 1,
-                                OTG_FORCE_LOCK_ON_EVENT, 0,
-                                OTG_SET_V_TOTAL_MIN_MASK, (1 << 1)); /* TRIGA */
-
        REG_SET_8(OTG_TRIGA_CNTL, 0,
                        OTG_TRIGA_SOURCE_SELECT, 21,
                        OTG_TRIGA_SOURCE_PIPE_SELECT, optc->inst,
 
                .num_dsc = 3,
 };
 
-#ifdef DIAGS_BUILD
-static const struct resource_caps res_cap_rn_FPGA_4pipe = {
-               .num_timing_generator = 4,
-               .num_opp = 4,
-               .num_video_plane = 4,
-               .num_audio = 7,
-               .num_stream_encoder = 4,
-               .num_pll = 4,
-               .num_dwb = 1,
-               .num_ddc = 4,
-               .num_dsc = 0,
-};
-
-static const struct resource_caps res_cap_rn_FPGA_2pipe_dsc = {
-               .num_timing_generator = 2,
-               .num_opp = 2,
-               .num_video_plane = 2,
-               .num_audio = 7,
-               .num_stream_encoder = 2,
-               .num_pll = 4,
-               .num_dwb = 1,
-               .num_ddc = 4,
-               .num_dsc = 2,
-};
-#endif
-
 static const struct dc_plane_cap plane_cap = {
        .type = DC_PLANE_TYPE_DCN_UNIVERSAL,
        .per_pixel_alpha = true,
        struct dc_context *ctx = dc->ctx;
        struct irq_service_init_data init_data;
        uint32_t pipe_fuses = read_pipe_fuses(ctx);
-       uint32_t num_pipes;
+       uint32_t num_pipes = 0;
 
        ctx->dc_bios->regs = &bios_regs;
 
        pool->base.res_cap = &res_cap_rn;
-#ifdef DIAGS_BUILD
-       if (IS_FPGA_MAXIMUS_DC(dc->ctx->dce_environment))
-               //pool->base.res_cap = &res_cap_nv10_FPGA_2pipe_dsc;
-               pool->base.res_cap = &res_cap_rn_FPGA_4pipe;
-#endif
 
        pool->base.funcs = &dcn21_res_pool_funcs;