aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dmub/src/dmub_dcn21.h
diff options
context:
space:
mode:
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>2019-11-20 09:29:17 -0500
committerAlex Deucher <alexander.deucher@amd.com>2019-12-18 16:09:07 -0500
commit01c229d977e0063fc784ea302877a08b82e9e7ee (patch)
tree80a8b179ce05030611c12947e3e1a7b16bbf24fa /drivers/gpu/drm/amd/display/dmub/src/dmub_dcn21.h
parentdrm/amd/display: Add wait for flip not pending on pipe unlock (diff)
downloadlinux-dev-01c229d977e0063fc784ea302877a08b82e9e7ee.tar.xz
linux-dev-01c229d977e0063fc784ea302877a08b82e9e7ee.zip
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>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dmub/src/dmub_dcn21.h')
-rw-r--r--drivers/gpu/drm/amd/display/dmub/src/dmub_dcn21.h4
1 files changed, 4 insertions, 0 deletions
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,