]> git.hungrycats.org Git - linux/commitdiff
drm/amd/display: Add a new interface to set idle opts in clock manager
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Thu, 28 May 2026 14:51:20 +0000 (10:51 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Jun 2026 20:14:29 +0000 (16:14 -0400)
[Why & How]
For future use in migrating the idle optimizations message to PMFW to
DC core.

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Chenyu Chen <chen-yu.chen@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr.h

index f829ce3f70e53d7ca6c8d2d7e8a6da8e90746e3a..9b5bdcddfa7ae263bb13a07a6876ddc0df827c39 100644 (file)
@@ -337,6 +337,8 @@ struct clk_mgr_funcs {
        void (*exit_low_power_state)(struct clk_mgr *clk_mgr);
        bool (*is_ips_supported)(struct clk_mgr *clk_mgr);
 
+       void (*set_idle_power_optimizations)(struct clk_mgr *clk_mgr, bool enable);
+
        void (*init_clocks)(struct clk_mgr *clk_mgr);
 
        void (*dump_clk_registers)(struct clk_state_registers_and_bypass *regs_and_bypass,