summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/inc/hw/dccg.h
diff options
context:
space:
mode:
authorWenjing Liu <wenjing.liu@amd.com>2023-12-01 06:25:20 -0700
committerAlex Deucher <alexander.deucher@amd.com>2023-12-06 15:22:34 -0500
commit08a32addf17317b9fac55be9b31275cbf6e41fb7 (patch)
tree6d0d71f2019fadecc9af58c730d6948e8686d2e5 /drivers/gpu/drm/amd/display/dc/inc/hw/dccg.h
parentdd5c6362ddcd8bdb07704faff8648593885ecfa1 (diff)
downloadlinux-08a32addf17317b9fac55be9b31275cbf6e41fb7.tar.gz
linux-08a32addf17317b9fac55be9b31275cbf6e41fb7.tar.bz2
linux-08a32addf17317b9fac55be9b31275cbf6e41fb7.zip
drm/amd/display: add support for DTO genarated dscclk
Current implementation will choose to use refclk as dscclk. This is not recommended by hardware team as refclk is a fixed value which could cause unnecessary power consumption or it could be not enough for large DSC timings. So we are adding new interfaces so we could switch to use dynamically generated DSCCLK by DTO. So DSCCLK is programmable based on current pixel clock and dispclk. Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Reviewed-by: Chaitanya Dhere <chaitanya.dhere@amd.com> Acked-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com> Signed-off-by: Wenjing Liu <wenjing.liu@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.h4
1 files changed, 4 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 ce2f0c0e82bd..6b44557fcb1a 100644
--- a/drivers/gpu/drm/amd/display/dc/inc/hw/dccg.h
+++ b/drivers/gpu/drm/amd/display/dc/inc/hw/dccg.h
@@ -201,6 +201,10 @@ struct dccg_funcs {
struct dccg *dccg,
enum streamclk_source src,
uint32_t otg_inst);
+ void (*set_dto_dscclk)(
+ struct dccg *dccg,
+ uint32_t dsc_inst);
+ void (*set_ref_dscclk)(struct dccg *dccg, uint32_t dsc_inst);
};
#endif //__DAL_DCCG_H__