summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/dcn301
diff options
context:
space:
mode:
authorZhan Liu <zhan.liu@amd.com>2020-11-19 22:48:29 -0500
committerAlex Deucher <alexander.deucher@amd.com>2020-12-01 16:03:52 -0500
commitf5041bc1fcc3c476e08a28cb393a6869536e33c8 (patch)
treecfa8e17807d9711bc3972121f6f4cd4da7fbce60 /drivers/gpu/drm/amd/display/dc/dcn301
parent115a385c08d8d1874b3496d134cba0cc218f0fda (diff)
downloadlwn-f5041bc1fcc3c476e08a28cb393a6869536e33c8.tar.gz
lwn-f5041bc1fcc3c476e08a28cb393a6869536e33c8.zip
drm/amd/display: Properly define DPCS related info for DCN301
[Why] DPCS related info needs to be properly defined within code. [How] Add missing DPCS related info to code. Signed-off-by: Zhan Liu <zhan.liu@amd.com> Reviewed-by: Nikola Cornij <nikola.cornij@amd.com> Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dcn301')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c b/drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c
index 7e95bd1e9e53..4825c5c1c6ed 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c
@@ -73,6 +73,9 @@
#include "nbio/nbio_7_2_0_offset.h"
+#include "dcn/dpcs_3_0_0_offset.h"
+#include "dcn/dpcs_3_0_0_sh_mask.h"
+
#include "reg_helper.h"
#include "dce/dmub_abm.h"
#include "dce/dce_aux.h"
@@ -517,10 +520,12 @@ static const struct dcn10_link_enc_hpd_registers link_enc_hpd_regs[] = {
hpd_regs(3),
};
+
#define link_regs(id, phyid)\
[id] = {\
LE_DCN301_REG_LIST(id), \
UNIPHY_DCN2_REG_LIST(phyid), \
+ DPCS_DCN2_REG_LIST(id), \
SRI(DP_DPHY_INTERNAL_CTRL, DP, id) \
}
@@ -540,11 +545,13 @@ static const struct dcn10_link_enc_registers link_enc_regs[] = {
};
static const struct dcn10_link_enc_shift le_shift = {
- LINK_ENCODER_MASK_SH_LIST_DCN301(__SHIFT)
+ LINK_ENCODER_MASK_SH_LIST_DCN301(__SHIFT),\
+ DPCS_DCN2_MASK_SH_LIST(__SHIFT)
};
static const struct dcn10_link_enc_mask le_mask = {
- LINK_ENCODER_MASK_SH_LIST_DCN301(_MASK)
+ LINK_ENCODER_MASK_SH_LIST_DCN301(_MASK),\
+ DPCS_DCN2_MASK_SH_LIST(_MASK)
};
#define panel_cntl_regs(id)\