Skip to content

Commit

Permalink
drm/amd/display: Add DCN3.1 yellow carp asic family IDs
Browse files Browse the repository at this point in the history
[Why & How]
To determine whether the chip is yellow carp or not and which revision
it is.

Acked-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Nicholas Kazlauskas authored and Alex Deucher committed Jun 4, 2021
1 parent 7536256 commit d997ea5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions drivers/gpu/drm/amd/display/include/dal_asic_id.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,19 @@ enum {
#define ASICREV_IS_GREEN_SARDINE(eChipRev) ((eChipRev >= GREEN_SARDINE_A0) && (eChipRev < 0xFF))
#endif

#if defined(CONFIG_DRM_AMD_DC_DCN3_1)
#define FAMILY_YELLOW_CARP 146

#define YELLOW_CARP_A0 0x01
#define YELLOW_CARP_B0 0x02 // TODO: DCN31 - update with correct B0 ID
#define YELLOW_CARP_UNKNOWN 0xFF

#ifndef ASICREV_IS_YELLOW_CARP
#define ASICREV_IS_YELLOW_CARP(eChipRev) ((eChipRev >= YELLOW_CARP_A0) && (eChipRev < YELLOW_CARP_UNKNOWN))
#endif
#endif


/*
* ASIC chip ID
*/
Expand Down
3 changes: 3 additions & 0 deletions drivers/gpu/drm/amd/display/include/dal_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ enum dce_version {
DCN_VERSION_3_01,
DCN_VERSION_3_02,
DCN_VERSION_3_03,
#if defined(CONFIG_DRM_AMD_DC_DCN3_1)
DCN_VERSION_3_1,
#endif
DCN_VERSION_MAX
};

Expand Down

0 comments on commit d997ea5

Please sign in to comment.