drm/amd/display: Add DCN3.1 GPIO support
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Wed, 19 May 2021 16:28:11 +0000 (12:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 4 Jun 2021 20:39:18 +0000 (16:39 -0400)
Extends off of DCN3.

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>
drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c
drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c

index 5aa714e831dd5ab820cd39d8eb21a7910ca976d6..fbf71ff0a402ea594ec6c5e7e00e38291dd429a3 100644 (file)
@@ -112,6 +112,9 @@ bool dal_hw_factory_init(
        case DCN_VERSION_3_01:
        case DCN_VERSION_3_02:
        case DCN_VERSION_3_03:
+#if defined(CONFIG_DRM_AMD_DC_DCN3_1)
+       case DCN_VERSION_3_1:
+#endif
                dal_hw_factory_dcn30_init(factory);
                return true;
 #endif
index 199a9dd0e0e3bda99dc43c5c7ef83b42da036c18..89794687f6a0d5987580ebce4f69d450ca494168 100644 (file)
@@ -107,6 +107,9 @@ bool dal_hw_translate_init(
        case DCN_VERSION_3_01:
        case DCN_VERSION_3_02:
        case DCN_VERSION_3_03:
+#if defined(CONFIG_DRM_AMD_DC_DCN3_1)
+       case DCN_VERSION_3_1:
+#endif
                dal_hw_translate_dcn30_init(translate);
                return true;
 #endif