@@ -152,9 +152,7 @@ enum dcn10_clk_src_array_id {
152152 DCN10_CLK_SRC_PLL2 ,
153153 DCN10_CLK_SRC_PLL3 ,
154154 DCN10_CLK_SRC_TOTAL ,
155- #if defined(CONFIG_DRM_AMD_DC_DCN1_01 )
156155 DCN101_CLK_SRC_TOTAL = DCN10_CLK_SRC_PLL3
157- #endif
158156};
159157
160158/* begin *********************
@@ -522,7 +520,6 @@ static const struct resource_caps res_cap = {
522520 .num_ddc = 4 ,
523521};
524522
525- #if defined(CONFIG_DRM_AMD_DC_DCN1_01 )
526523static const struct resource_caps rv2_res_cap = {
527524 .num_timing_generator = 3 ,
528525 .num_opp = 3 ,
@@ -532,7 +529,6 @@ static const struct resource_caps rv2_res_cap = {
532529 .num_pll = 3 ,
533530 .num_ddc = 3 ,
534531};
535- #endif
536532
537533static const struct dc_plane_cap plane_cap = {
538534 .type = DC_PLANE_TYPE_DCN_UNIVERSAL ,
@@ -1270,11 +1266,9 @@ static bool construct(
12701266
12711267 ctx -> dc_bios -> regs = & bios_regs ;
12721268
1273- #if defined(CONFIG_DRM_AMD_DC_DCN1_01 )
12741269 if (ctx -> dce_version == DCN_VERSION_1_01 )
12751270 pool -> base .res_cap = & rv2_res_cap ;
12761271 else
1277- #endif
12781272 pool -> base .res_cap = & res_cap ;
12791273 pool -> base .funcs = & dcn10_res_pool_funcs ;
12801274
@@ -1291,10 +1285,8 @@ static bool construct(
12911285 /* max pipe num for ASIC before check pipe fuses */
12921286 pool -> base .pipe_count = pool -> base .res_cap -> num_timing_generator ;
12931287
1294- #if defined(CONFIG_DRM_AMD_DC_DCN1_01 )
12951288 if (dc -> ctx -> dce_version == DCN_VERSION_1_01 )
12961289 pool -> base .pipe_count = 3 ;
1297- #endif
12981290 dc -> caps .max_video_width = 3840 ;
12991291 dc -> caps .max_downscale_ratio = 200 ;
13001292 dc -> caps .i2c_speed_in_khz = 100 ;
@@ -1327,26 +1319,17 @@ static bool construct(
13271319 CLOCK_SOURCE_COMBO_PHY_PLL2 ,
13281320 & clk_src_regs [2 ], false);
13291321
1330- #ifdef CONFIG_DRM_AMD_DC_DCN1_01
13311322 if (dc -> ctx -> dce_version == DCN_VERSION_1_0 ) {
13321323 pool -> base .clock_sources [DCN10_CLK_SRC_PLL3 ] =
13331324 dcn10_clock_source_create (ctx , ctx -> dc_bios ,
13341325 CLOCK_SOURCE_COMBO_PHY_PLL3 ,
13351326 & clk_src_regs [3 ], false);
13361327 }
1337- #else
1338- pool -> base .clock_sources [DCN10_CLK_SRC_PLL3 ] =
1339- dcn10_clock_source_create (ctx , ctx -> dc_bios ,
1340- CLOCK_SOURCE_COMBO_PHY_PLL3 ,
1341- & clk_src_regs [3 ], false);
1342- #endif
13431328
13441329 pool -> base .clk_src_count = DCN10_CLK_SRC_TOTAL ;
13451330
1346- #if defined(CONFIG_DRM_AMD_DC_DCN1_01 )
13471331 if (dc -> ctx -> dce_version == DCN_VERSION_1_01 )
13481332 pool -> base .clk_src_count = DCN101_CLK_SRC_TOTAL ;
1349- #endif
13501333
13511334 pool -> base .dp_clock_source =
13521335 dcn10_clock_source_create (ctx , ctx -> dc_bios ,
@@ -1386,7 +1369,6 @@ static bool construct(
13861369 memcpy (dc -> dcn_ip , & dcn10_ip_defaults , sizeof (dcn10_ip_defaults ));
13871370 memcpy (dc -> dcn_soc , & dcn10_soc_defaults , sizeof (dcn10_soc_defaults ));
13881371
1389- #if defined(CONFIG_DRM_AMD_DC_DCN1_01 )
13901372 if (dc -> ctx -> dce_version == DCN_VERSION_1_01 ) {
13911373 struct dcn_soc_bounding_box * dcn_soc = dc -> dcn_soc ;
13921374 struct dcn_ip_params * dcn_ip = dc -> dcn_ip ;
@@ -1397,7 +1379,6 @@ static bool construct(
13971379 dcn_soc -> dram_clock_change_latency = 23 ;
13981380 dcn_ip -> max_num_dpp = 3 ;
13991381 }
1400- #endif
14011382 if (ASICREV_IS_RV1_F0 (dc -> ctx -> asic_id .hw_internal_rev )) {
14021383 dc -> dcn_soc -> urgent_latency = 3 ;
14031384 dc -> debug .disable_dmcu = true;
0 commit comments