aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3571-drm-amd-display-Add-missing-Vega-defines-to-dal_asic.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3571-drm-amd-display-Add-missing-Vega-defines-to-dal_asic.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3571-drm-amd-display-Add-missing-Vega-defines-to-dal_asic.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3571-drm-amd-display-Add-missing-Vega-defines-to-dal_asic.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3571-drm-amd-display-Add-missing-Vega-defines-to-dal_asic.patch
new file mode 100644
index 00000000..50a917ab
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3571-drm-amd-display-Add-missing-Vega-defines-to-dal_asic.patch
@@ -0,0 +1,36 @@
+From 8499293f46b040ed21106312bcc5b7095128e3c5 Mon Sep 17 00:00:00 2001
+From: Harry Wentland <harry.wentland@amd.com>
+Date: Thu, 1 Feb 2018 11:29:58 -0500
+Subject: [PATCH 3571/4131] drm/amd/display: Add missing Vega defines to
+ dal_asic_id
+
+Signed-off-by: Harry Wentland <harry.wentland@amd.com>
+Reviewed-by: Hersen Wu <hersenxs.wu@amd.com>
+Acked-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 | 8 ++++++++
+ 1 file changed, 8 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 7abe663..9831cb5 100644
+--- a/drivers/gpu/drm/amd/display/include/dal_asic_id.h
++++ b/drivers/gpu/drm/amd/display/include/dal_asic_id.h
+@@ -109,6 +109,14 @@
+ #define ASIC_REV_IS_STONEY(rev) \
+ ((rev >= STONEY_A0) && (rev < CZ_UNKNOWN))
+
++/* DCE12 */
++
++#define AI_GREENLAND_P_A0 1
++#define AI_GREENLAND_P_A1 2
++
++#define ASICREV_IS_GREENLAND_M(eChipRev) (eChipRev < AI_UNKNOWN)
++#define ASICREV_IS_GREENLAND_P(eChipRev) (eChipRev < AI_UNKNOWN)
++
+ /* DCN1_0 */
+ #define INTERNAL_REV_RAVEN_A0 0x00 /* First spin of Raven */
+ #define RAVEN_A0 0x01
+--
+2.7.4
+