drm/amd/display: add addition dc type to translate to dmub fw type
authorAnthony Koo <Anthony.Koo@amd.com>
Wed, 22 Apr 2020 02:01:30 +0000 (22:01 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 May 2020 17:11:49 +0000 (13:11 -0400)
commit1cfbbddead0abd8551ad2da5630cefea0a4289a6
tree2998459a6268267e32214643ba69dd68698044dc
parent492548dcb045e1bd3a7424fb75a8fbe7dbd09ec4
drm/amd/display: add addition dc type to translate to dmub fw type

[Why]
For a type like PSR version, it makes sense for most of the code
to include a dc type, instead of having this a fw type define since
this is a capability and type exposed by dc.

Especially if it doesn't even need to communicate with the fw.

The code that is packing the firmware command message
should be the one who needs to translate the psr version
into a command that the firmware understands.

[How]
Add a dc_psr_version enum.

Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/dc_link.h
drivers/gpu/drm/amd/display/dc/dc_types.h
drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c