drm/amd/display: add ASICREV defines v2
authorBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Tue, 2 Jul 2019 15:43:55 +0000 (10:43 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2019 19:18:00 +0000 (14:18 -0500)
Add revs for navi10 and 14.

Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Xiaojie Yuan <xiaojie.yuan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/include/dal_asic_id.h

index 887e6a8597c47acd9d30fe7f3016c12e4ee29b8c..94b7d5ec155b7a082f856255b1c63ccfaffe2aac 100644 (file)
 
 #define FAMILY_NV 143 /* DCN 2*/
 
+enum {
+       NV_NAVI10_P_A0      = 1,
+       NV_NAVI14_M_A0      = 20,
+       NV_UNKNOWN          = 0xFF
+};
+
+#define ASICREV_IS_NAVI10_P(eChipRev)        (eChipRev < NV_NAVI14_M_A0)
+#define ASICREV_IS_NAVI14_M(eChipRev)        ((eChipRev >= NV_NAVI14_M_A0) && (eChipRev < NV_UNKNOWN))
 #endif
 
 /*