mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
drm/amd/display: Add ASICREV_IS_NAVI macros
They are used by DC to determine ASIC revs. Signed-off-by: Leo Li <sunpeng.li@amd.com> Reviewed-by: Roman Li <Roman.Li@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
400e9c5ea6
commit
36bbb634b7
@ -153,11 +153,13 @@
|
||||
|
||||
enum {
|
||||
NV_NAVI10_P_A0 = 1,
|
||||
NV_NAVI12_P_A0 = 10,
|
||||
NV_NAVI14_M_A0 = 20,
|
||||
NV_UNKNOWN = 0xFF
|
||||
};
|
||||
|
||||
#define ASICREV_IS_NAVI10_P(eChipRev) (eChipRev < NV_NAVI14_M_A0)
|
||||
#define ASICREV_IS_NAVI10_P(eChipRev) (eChipRev < NV_NAVI12_P_A0)
|
||||
#define ASICREV_IS_NAVI12_P(eChipRev) ((eChipRev >= NV_NAVI12_P_A0) && (eChipRev < NV_NAVI14_M_A0))
|
||||
#define ASICREV_IS_NAVI14_M(eChipRev) ((eChipRev >= NV_NAVI14_M_A0) && (eChipRev < NV_UNKNOWN))
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user