From 01c229d977e0063fc784ea302877a08b82e9e7ee Mon Sep 17 00:00:00 2001 From: Nicholas Kazlauskas Date: Wed, 20 Nov 2019 09:29:17 -0500 Subject: 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 Reviewed-by: Tony Cheng Acked-by: Rodrigo Siqueira Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/display/dmub/src/dmub_dcn21.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/gpu/drm/amd/display/dmub/src/dmub_dcn21.h') diff --git a/drivers/gpu/drm/amd/display/dmub/src/dmub_dcn21.h b/drivers/gpu/drm/amd/display/dmub/src/dmub_dcn21.h index f7a93a5dcfa5..0728b74b68cf 100644 --- a/drivers/gpu/drm/amd/display/dmub/src/dmub_dcn21.h +++ b/drivers/gpu/drm/amd/display/dmub/src/dmub_dcn21.h @@ -28,6 +28,10 @@ #include "dmub_dcn20.h" +/* Registers. */ + +extern const struct dmub_srv_common_regs dmub_srv_dcn21_regs; + /* Hardware functions. */ void dmub_dcn21_backdoor_load(struct dmub_srv *dmub, -- cgit v1.2.3-59-g8ed1b