diff options
author | Leo Li <sunpeng.li@amd.com> | 2019-07-16 11:50:06 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-08-02 10:30:41 -0500 |
commit | 36bbb634b75399b98e09be41842fdf8429453e31 (patch) | |
tree | 436dd50fd2cc3c5c7cd6a426519b8f7d7190e4f3 /drivers | |
parent | 400e9c5ea66ae2ec101992b6f3af8441c5b58497 (diff) | |
download | linux-36bbb634b75399b98e09be41842fdf8429453e31.tar.bz2 |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/amd/display/include/dal_asic_id.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/include/dal_asic_id.h b/drivers/gpu/drm/amd/display/include/dal_asic_id.h index 94b7d5ec155b..d2e380d8c9a0 100644 --- a/drivers/gpu/drm/amd/display/include/dal_asic_id.h +++ b/drivers/gpu/drm/amd/display/include/dal_asic_id.h @@ -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 |