]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/amd/display: Add dppclk to dcn_bw_clocks
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Tue, 14 Nov 2017 16:52:11 +0000 (11:52 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Dec 2017 15:56:59 +0000 (10:56 -0500)
Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_hwseq.h
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/inc/core_types.h

index 3b0db253ac22f7b0afc841ad00fa7c829f477cf5..b73db9e784375618f87422f143cf36d00e1ce552 100644 (file)
@@ -582,7 +582,8 @@ struct dce_hwseq_registers {
        type DOMAIN7_PGFSM_PWR_STATUS; \
        type DCFCLK_GATE_DIS; \
        type DCHUBBUB_GLOBAL_TIMER_REFDIV; \
-       type DENTIST_DPPCLK_WDIVIDER;
+       type DENTIST_DPPCLK_WDIVIDER; \
+       type DENTIST_DISPCLK_WDIVIDER;
 
 struct dce_hwseq_shift {
        HWSEQ_REG_FIELD_LIST(uint8_t)
index a4d756c1b97a0efff2af38d33fed13b027763362..39a4d1a86583e9c70da17bea662ee0b6b4cd76f1 100644 (file)
@@ -1335,7 +1335,6 @@ static void dcn10_enable_plane(
        /* make sure OPP_PIPE_CLOCK_EN = 1 */
        REG_UPDATE(OPP_PIPE_CONTROL[pipe_ctx->stream_res.tg->inst],
                        OPP_PIPE_CLOCK_EN, 1);
-       /*TODO: REG_UPDATE(DENTIST_DISPCLK_CNTL, DENTIST_DPPCLK_WDIVIDER, 0x1f);*/
 
 /* TODO: enable/disable in dm as per update type.
        if (plane_state) {
index d680b565af6fa529bac934ac86f5e58768f60413..9cc6bbb2071469e2ee3080bd2cb8d8d77561f8db 100644 (file)
@@ -241,6 +241,7 @@ struct dce_bw_output {
 
 struct dcn_bw_clocks {
        int dispclk_khz;
+       int dppclk_khz;
        bool dppclk_div;
        int dcfclk_khz;
        int dcfclk_deep_sleep_khz;