Commit 96475094 authored by Harry Wentland's avatar Harry Wentland Committed by Alex Deucher

drm/amd/display: Add DCN2 BIOS parsing

Handle BIOS parsing for DCN2
Signed-off-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 2e35facf
...@@ -1400,6 +1400,10 @@ static enum bp_result get_integrated_info_v11( ...@@ -1400,6 +1400,10 @@ static enum bp_result get_integrated_info_v11(
info->ma_channel_number = info_v11->umachannelnumber; info->ma_channel_number = info_v11->umachannelnumber;
info->lvds_ss_percentage = info->lvds_ss_percentage =
le16_to_cpu(info_v11->lvds_ss_percentage); le16_to_cpu(info_v11->lvds_ss_percentage);
#ifdef CONFIG_DRM_AMD_DC_DCN2_0
info->dp_ss_control =
le16_to_cpu(info_v11->reserved1);
#endif
info->lvds_sspread_rate_in_10hz = info->lvds_sspread_rate_in_10hz =
le16_to_cpu(info_v11->lvds_ss_rate_10hz); le16_to_cpu(info_v11->lvds_ss_rate_10hz);
info->hdmi_ss_percentage = info->hdmi_ss_percentage =
......
...@@ -61,6 +61,12 @@ bool dal_bios_parser_init_cmd_tbl_helper2( ...@@ -61,6 +61,12 @@ bool dal_bios_parser_init_cmd_tbl_helper2(
*h = dal_cmd_tbl_helper_dce112_get_table2(); *h = dal_cmd_tbl_helper_dce112_get_table2();
return true; return true;
#endif #endif
#if defined(CONFIG_DRM_AMD_DC_DCN2_0)
case DCN_VERSION_2_0:
*h = dal_cmd_tbl_helper_dce112_get_table2();
return true;
#endif
case DCE_VERSION_12_0: case DCE_VERSION_12_0:
case DCE_VERSION_12_1: case DCE_VERSION_12_1:
*h = dal_cmd_tbl_helper_dce112_get_table2(); *h = dal_cmd_tbl_helper_dce112_get_table2();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment