]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Get DMUB registers from ASIC specific structs
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Wed, 20 Nov 2019 14:29:17 +0000 (09:29 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Dec 2019 21:09:07 +0000 (16:09 -0500)
commitd2a85f01754f08512139ed10d1d4079e7f6390c1
tree80a8b179ce05030611c12947e3e1a7b16bbf24fa
parente19fb62d937f2d9aa6cc3013d01b411a69255c02
drm/amd/display: Get DMUB registers from ASIC specific structs

[Why]
These values can differ per ASIC and should follow the full DC style
register programming model.

[How]
Define a common list and fill in the common list separately for
dcn20 and dcn21.

Unlike DC we're not using designated initializers for better compiler
compatibility since this resides in the DMUB service.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dmub/inc/dmub_srv.h
drivers/gpu/drm/amd/display/dmub/src/dmub_dcn20.c
drivers/gpu/drm/amd/display/dmub/src/dmub_dcn20.h
drivers/gpu/drm/amd/display/dmub/src/dmub_dcn21.c
drivers/gpu/drm/amd/display/dmub/src/dmub_dcn21.h
drivers/gpu/drm/amd/display/dmub/src/dmub_reg.h
drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c