mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 22:46:42 +07:00
drm/amdgpu/display: fix vega12/20 handling in dal_asic_id.h
- Remove unused ASICREV_IS_VEGA12_p() macro - Fix ASICREV_IS_VEGA12_P() macro to properly check against vega20 Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
b4b9f944e4
commit
a1a0c40664
@ -115,19 +115,17 @@
|
|||||||
/* DCE12 */
|
/* DCE12 */
|
||||||
#define AI_UNKNOWN 0xFF
|
#define AI_UNKNOWN 0xFF
|
||||||
|
|
||||||
#define AI_VEGA20_P_A0 40
|
|
||||||
#define ASICREV_IS_VEGA20_P(eChipRev) ((eChipRev >= AI_VEGA20_P_A0) && (eChipRev < AI_UNKNOWN))
|
|
||||||
|
|
||||||
#define AI_GREENLAND_P_A0 1
|
#define AI_GREENLAND_P_A0 1
|
||||||
#define AI_GREENLAND_P_A1 2
|
#define AI_GREENLAND_P_A1 2
|
||||||
#define AI_UNKNOWN 0xFF
|
#define AI_UNKNOWN 0xFF
|
||||||
|
|
||||||
#define AI_VEGA12_P_A0 20
|
#define AI_VEGA12_P_A0 20
|
||||||
|
#define AI_VEGA20_P_A0 40
|
||||||
#define ASICREV_IS_GREENLAND_M(eChipRev) (eChipRev < AI_VEGA12_P_A0)
|
#define ASICREV_IS_GREENLAND_M(eChipRev) (eChipRev < AI_VEGA12_P_A0)
|
||||||
#define ASICREV_IS_GREENLAND_P(eChipRev) (eChipRev < AI_VEGA12_P_A0)
|
#define ASICREV_IS_GREENLAND_P(eChipRev) (eChipRev < AI_VEGA12_P_A0)
|
||||||
|
|
||||||
#define ASICREV_IS_VEGA12_P(eChipRev) ((eChipRev >= AI_VEGA12_P_A0) && (eChipRev < AI_UNKNOWN))
|
#define ASICREV_IS_VEGA12_P(eChipRev) ((eChipRev >= AI_VEGA12_P_A0) && (eChipRev < AI_VEGA20_P_A0))
|
||||||
#define ASICREV_IS_VEGA12_p(eChipRev) ((eChipRev >= AI_VEGA12_P_A0) && (eChipRev < AI_UNKNOWN))
|
#define ASICREV_IS_VEGA20_P(eChipRev) ((eChipRev >= AI_VEGA20_P_A0) && (eChipRev < AI_UNKNOWN))
|
||||||
|
|
||||||
/* DCN1_0 */
|
/* DCN1_0 */
|
||||||
#define INTERNAL_REV_RAVEN_A0 0x00 /* First spin of Raven */
|
#define INTERNAL_REV_RAVEN_A0 0x00 /* First spin of Raven */
|
||||||
|
Loading…
Reference in New Issue
Block a user