aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2429-drm-amd-display-Add-DCN2-and-NV-ASIC-ID.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2429-drm-amd-display-Add-DCN2-and-NV-ASIC-ID.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2429-drm-amd-display-Add-DCN2-and-NV-ASIC-ID.patch48
1 files changed, 48 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2429-drm-amd-display-Add-DCN2-and-NV-ASIC-ID.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2429-drm-amd-display-Add-DCN2-and-NV-ASIC-ID.patch
new file mode 100644
index 00000000..2e59d64e
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2429-drm-amd-display-Add-DCN2-and-NV-ASIC-ID.patch
@@ -0,0 +1,48 @@
+From c623adbff992067d267e0c428f3cd207826f0d22 Mon Sep 17 00:00:00 2001
+From: Harry Wentland <harry.wentland@amd.com>
+Date: Fri, 22 Feb 2019 10:11:16 -0500
+Subject: [PATCH 2429/2940] drm/amd/display: Add DCN2 and NV ASIC ID
+
+DCN2.0 (Display Core Next) is the display block in Navi10.
+
+Signed-off-by: Harry Wentland <harry.wentland@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/include/dal_asic_id.h | 6 ++++++
+ drivers/gpu/drm/amd/display/include/dal_types.h | 3 +++
+ 2 files changed, 9 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/display/include/dal_asic_id.h b/drivers/gpu/drm/amd/display/include/dal_asic_id.h
+index 17c421c3042d..1c4327476152 100644
+--- a/drivers/gpu/drm/amd/display/include/dal_asic_id.h
++++ b/drivers/gpu/drm/amd/display/include/dal_asic_id.h
+@@ -145,6 +145,12 @@
+
+ #define FAMILY_RV 142 /* DCN 1*/
+
++#if defined(CONFIG_DRM_AMD_DC_DCN2_0)
++
++#define FAMILY_NV 143 /* DCN 2*/
++
++#endif
++
+ /*
+ * ASIC chip ID
+ */
+diff --git a/drivers/gpu/drm/amd/display/include/dal_types.h b/drivers/gpu/drm/amd/display/include/dal_types.h
+index dabdbc0999d4..1e3ce4d847ae 100644
+--- a/drivers/gpu/drm/amd/display/include/dal_types.h
++++ b/drivers/gpu/drm/amd/display/include/dal_types.h
+@@ -46,6 +46,9 @@ enum dce_version {
+ DCE_VERSION_MAX,
+ DCN_VERSION_1_0,
+ DCN_VERSION_1_01,
++#if defined(CONFIG_DRM_AMD_DC_DCN2_0)
++ DCN_VERSION_2_0,
++#endif
+ DCN_VERSION_MAX
+ };
+
+--
+2.17.1
+