drm/amdgpu/display: extend DCN guard in dal_bios_parser_init_cmd_tbl_helper2
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Feb 2020 04:21:04 +0000 (23:21 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Feb 2020 21:04:39 +0000 (16:04 -0500)
To cover DCN 2.x.

Reviewed-by: Zhan Liu <zhan.liu@amd.com>
Tested-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/bios/command_table_helper2.c

index 7388c987c595ad39df328e3958d052686bdcea4e..204d7942a6e5c6500e5e8ab7a6e019073b03c6c1 100644 (file)
@@ -53,25 +53,18 @@ bool dal_bios_parser_init_cmd_tbl_helper2(
 
        case DCE_VERSION_11_2:
        case DCE_VERSION_11_22:
+       case DCE_VERSION_12_0:
+       case DCE_VERSION_12_1:
                *h = dal_cmd_tbl_helper_dce112_get_table2();
                return true;
 #if defined(CONFIG_DRM_AMD_DC_DCN)
        case DCN_VERSION_1_0:
        case DCN_VERSION_1_01:
-               *h = dal_cmd_tbl_helper_dce112_get_table2();
-               return true;
-#endif
-
        case DCN_VERSION_2_0:
-               *h = dal_cmd_tbl_helper_dce112_get_table2();
-               return true;
        case DCN_VERSION_2_1:
                *h = dal_cmd_tbl_helper_dce112_get_table2();
                return true;
-       case DCE_VERSION_12_0:
-       case DCE_VERSION_12_1:
-               *h = dal_cmd_tbl_helper_dce112_get_table2();
-               return true;
+#endif
 
        default:
                /* Unsupported DCE */