Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 41ef3dcd86443fa ("drm/amd/display: Fix RV2 Variant Detection")
Signed-off-by: Shirish S <shirish.s@amd.com>
Reviewed-by: Zhan Liu <zhan.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Shirish S and committed by
Alex Deucher
dbd138df 575b0a6e

+4 -2
+4 -2
drivers/gpu/drm/amd/display/include/dal_asic_id.h
··· 136 136 #define RAVEN2_A0 0x81 137 137 #define RAVEN1_F0 0xF0 138 138 #define RAVEN_UNKNOWN 0xFF 139 + #define RENOIR_A0 0x91 139 140 #ifndef ASICREV_IS_RAVEN 140 141 #define ASICREV_IS_RAVEN(eChipRev) ((eChipRev >= RAVEN_A0) && eChipRev < RAVEN_UNKNOWN) 141 142 #endif ··· 172 171 #define ASICREV_IS_NAVI10_P(eChipRev) (eChipRev < NV_NAVI12_P_A0) 173 172 #define ASICREV_IS_NAVI12_P(eChipRev) ((eChipRev >= NV_NAVI12_P_A0) && (eChipRev < NV_NAVI14_M_A0)) 174 173 #define ASICREV_IS_NAVI14_M(eChipRev) ((eChipRev >= NV_NAVI14_M_A0) && (eChipRev < NV_UNKNOWN)) 175 - #define RENOIR_A0 0x91 176 - #define DEVICE_ID_RENOIR_1636 0x1636 // Renoir 177 174 #define ASICREV_IS_RENOIR(eChipRev) ((eChipRev >= RENOIR_A0) && (eChipRev < RAVEN1_F0)) 178 175 179 176 /* ··· 181 182 #define DEVICE_ID_KALINDI_9834 0x9834 182 183 #define DEVICE_ID_TEMASH_9839 0x9839 183 184 #define DEVICE_ID_TEMASH_983D 0x983D 185 + 186 + /* RENOIR */ 187 + #define DEVICE_ID_RENOIR_1636 0x1636 184 188 185 189 /* Asic Family IDs for different asic family. */ 186 190 #define FAMILY_CI 120 /* Sea Islands: Hawaii (P), Bonaire (M) */