summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/inc/hw/dccg.h
diff options
context:
space:
mode:
authorDaniel Miess <daniel.miess@amd.com>2024-04-23 15:45:59 -0400
committerAlex Deucher <alexander.deucher@amd.com>2024-05-13 15:47:08 -0400
commitc49e44ede5cdfe650c2f769d8bd58cbe289e87cd (patch)
treec9f981f3bbfcab36ef1f33f6ff5ef0a4cf96b2d9 /drivers/gpu/drm/amd/display/dc/inc/hw/dccg.h
parent4655b4d953067c176ecdbee4167cc85fc0058be1 (diff)
downloadlinux-c49e44ede5cdfe650c2f769d8bd58cbe289e87cd.tar.gz
linux-c49e44ede5cdfe650c2f769d8bd58cbe289e87cd.tar.bz2
linux-c49e44ede5cdfe650c2f769d8bd58cbe289e87cd.zip
drm/amd/display: Enable SYMCLK gating in DCCG
[WHY & HOW] Enable root clock optimization for SYMCLK and only disable it when it's actively used. Reviewed-by: Charlene Liu <charlene.liu@amd.com> Acked-by: Alex Hung <alex.hung@amd.com> Signed-off-by: Daniel Miess <daniel.miess@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/inc/hw/dccg.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/inc/hw/dccg.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/dccg.h b/drivers/gpu/drm/amd/display/dc/inc/hw/dccg.h
index 867bc67aabfa..5b0924ea78af 100644
--- a/drivers/gpu/drm/amd/display/dc/inc/hw/dccg.h
+++ b/drivers/gpu/drm/amd/display/dc/inc/hw/dccg.h
@@ -199,6 +199,13 @@ struct dccg_funcs {
struct dccg *dccg,
uint32_t stream_enc_inst,
uint32_t link_enc_inst);
+
+ void (*set_symclk_root_clock_gating)(
+ struct dccg *dccg,
+ uint32_t stream_enc_inst,
+ uint32_t link_enc_inst,
+ bool enable);
+
void (*set_dp_dto)(
struct dccg *dccg,
const struct dp_dto_params *params);