Skip to content

Commit 36a5a58

Browse files
ShirishShalexdeucher
authored andcommitted
drm/amd/display: re-order asic declarations
Fixes build error of: "use of undeclared identifier 'RENOIR_A0'" To fix the same, this patch re-orders the ASIC declarations accordingly. Fixes: 41ef3dc ("drm/amd/display: Fix RV2 Variant Detection") Signed-off-by: Shirish S <[email protected]> Reviewed-by: Zhan Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 022ac4c commit 36a5a58

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/gpu/drm/amd/display/include/dal_asic_id.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@
136136
#define RAVEN2_A0 0x81
137137
#define RAVEN1_F0 0xF0
138138
#define RAVEN_UNKNOWN 0xFF
139+
#define RENOIR_A0 0x91
139140
#ifndef ASICREV_IS_RAVEN
140141
#define ASICREV_IS_RAVEN(eChipRev) ((eChipRev >= RAVEN_A0) && eChipRev < RAVEN_UNKNOWN)
141142
#endif
@@ -171,8 +172,6 @@ enum {
171172
#define ASICREV_IS_NAVI10_P(eChipRev) (eChipRev < NV_NAVI12_P_A0)
172173
#define ASICREV_IS_NAVI12_P(eChipRev) ((eChipRev >= NV_NAVI12_P_A0) && (eChipRev < NV_NAVI14_M_A0))
173174
#define ASICREV_IS_NAVI14_M(eChipRev) ((eChipRev >= NV_NAVI14_M_A0) && (eChipRev < NV_UNKNOWN))
174-
#define RENOIR_A0 0x91
175-
#define DEVICE_ID_RENOIR_1636 0x1636 // Renoir
176175
#define ASICREV_IS_RENOIR(eChipRev) ((eChipRev >= RENOIR_A0) && (eChipRev < RAVEN1_F0))
177176

178177
/*
@@ -183,6 +182,9 @@ enum {
183182
#define DEVICE_ID_TEMASH_9839 0x9839
184183
#define DEVICE_ID_TEMASH_983D 0x983D
185184

185+
/* RENOIR */
186+
#define DEVICE_ID_RENOIR_1636 0x1636
187+
186188
/* Asic Family IDs for different asic family. */
187189
#define FAMILY_CI 120 /* Sea Islands: Hawaii (P), Bonaire (M) */
188190
#define FAMILY_KV 125 /* Fusion => Kaveri: Spectre, Spooky; Kabini: Kalindi */

0 commit comments

Comments
 (0)