mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 06:31:58 +02:00
drm/i915/dsb: Add pipedmc dc balance enable/disable
Add function to control DC balance enable/disable bit via DSB. --v2: Remove redundant forward declaration. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com> Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Link: https://patch.msgid.link/20251223104542.2688548-16-mitulkumar.ajitkumar.golani@intel.com
This commit is contained in:
parent
c4aba65c26
commit
27a4250ca2
|
|
@ -1755,3 +1755,20 @@ u32 intel_pipedmc_start_mmioaddr(struct intel_crtc *crtc)
|
|||
|
||||
return dmc ? dmc->dmc_info[dmc_id].start_mmioaddr : 0;
|
||||
}
|
||||
|
||||
void intel_pipedmc_dcb_enable(struct intel_dsb *dsb, struct intel_crtc *crtc)
|
||||
{
|
||||
struct intel_display *display = to_intel_display(crtc);
|
||||
enum pipe pipe = crtc->pipe;
|
||||
|
||||
intel_de_write_dsb(display, dsb, PIPEDMC_DCB_CTL(pipe),
|
||||
PIPEDMC_ADAPTIVE_DCB_ENABLE);
|
||||
}
|
||||
|
||||
void intel_pipedmc_dcb_disable(struct intel_dsb *dsb, struct intel_crtc *crtc)
|
||||
{
|
||||
struct intel_display *display = to_intel_display(crtc);
|
||||
enum pipe pipe = crtc->pipe;
|
||||
|
||||
intel_de_write_dsb(display, dsb, PIPEDMC_DCB_CTL(pipe), 0);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ struct intel_crtc;
|
|||
struct intel_crtc_state;
|
||||
struct intel_display;
|
||||
struct intel_dmc_snapshot;
|
||||
struct intel_dsb;
|
||||
|
||||
void intel_dmc_init(struct intel_display *display);
|
||||
void intel_dmc_load_program(struct intel_display *display);
|
||||
|
|
@ -39,6 +40,8 @@ void intel_dmc_update_dc6_allowed_count(struct intel_display *display, bool star
|
|||
void assert_main_dmc_loaded(struct intel_display *display);
|
||||
|
||||
void intel_pipedmc_irq_handler(struct intel_display *display, enum pipe pipe);
|
||||
void intel_pipedmc_dcb_enable(struct intel_dsb *dsb, struct intel_crtc *crtc);
|
||||
void intel_pipedmc_dcb_disable(struct intel_dsb *dsb, struct intel_crtc *crtc);
|
||||
|
||||
u32 intel_pipedmc_start_mmioaddr(struct intel_crtc *crtc);
|
||||
void intel_pipedmc_enable_event(struct intel_crtc *crtc,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user