summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/bios/command_table_helper2.c
diff options
context:
space:
mode:
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>2021-05-19 12:39:25 -0400
committerAlex Deucher <alexander.deucher@amd.com>2021-06-04 16:39:18 -0400
commitfcffbcf48df325e39e4f50c6264b39d0de60e34a (patch)
tree078cbafba5a0926e8c3ff6219c6a17d043477d00 /drivers/gpu/drm/amd/display/dc/bios/command_table_helper2.c
parentbf62221e9d0e1e4ba50ab2b331a0008c15de97be (diff)
downloadlinux-stable-fcffbcf48df325e39e4f50c6264b39d0de60e34a.tar.gz
linux-stable-fcffbcf48df325e39e4f50c6264b39d0de60e34a.tar.bz2
linux-stable-fcffbcf48df325e39e4f50c6264b39d0de60e34a.zip
drm/amd/display: Add DCN3.1 BIOS parser support
Updated interfaces for multiple eDP backlight caps. Added support for interpreting the new BIOS command tables on DCN3.1. Acked-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/bios/command_table_helper2.c')
-rw-r--r--drivers/gpu/drm/amd/display/dc/bios/command_table_helper2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/bios/command_table_helper2.c b/drivers/gpu/drm/amd/display/dc/bios/command_table_helper2.c
index 6d2fb112ad9f..3ac4dc01f8e1 100644
--- a/drivers/gpu/drm/amd/display/dc/bios/command_table_helper2.c
+++ b/drivers/gpu/drm/amd/display/dc/bios/command_table_helper2.c
@@ -72,6 +72,11 @@ bool dal_bios_parser_init_cmd_tbl_helper2(
case DCN_VERSION_2_1:
case DCN_VERSION_3_0:
case DCN_VERSION_3_01:
+#if defined(CONFIG_DRM_AMD_DC_DCN3_1)
+ case DCN_VERSION_3_1:
+ *h = dal_cmd_tbl_helper_dce112_get_table2();
+ return true;
+#endif
case DCN_VERSION_3_02:
case DCN_VERSION_3_03:
*h = dal_cmd_tbl_helper_dce112_get_table2();