diff options
author | Eugeni Dodonov <eugeni.dodonov@intel.com> | 2012-04-18 14:29:25 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-04-18 16:08:59 -0400 |
commit | 6f1d69b04fcd7ba16791165e8287d95e88bef848 (patch) | |
tree | fcfe2e587ec679441cde560d5a281fa61f412427 /drivers/gpu/drm/i915/intel_drv.h | |
parent | dde18883def89af28bd0c01aff3c7962b82dda18 (diff) |
drm/i915: move clock gating functionality into intel_pm module
This moves the clock gating-related functions into intel_pm module.
Also, please note that we do change the function type from static to
non-static in this patch for the move, to prevent breaking bisecting with
non-working intermediate commit. Those are returned back to static form in
the following patch which setups a generic PM initialization function,
which was split into a different one to simplify review.
v2: rebase on top of latest drm-intel-next-queued to incorporate all the
changes that went there meanwhile.
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Acked-by: Ben Widawsky <benjamin.widawsky@intel.com>
Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_drv.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index c87f29a2aeba..771075cedefa 100644 --- a/drivers/gpu/drm/i915/intel_drv.h +++ b/drivers/gpu/drm/i915/intel_drv.h | |||
@@ -339,6 +339,8 @@ extern bool intel_dpd_is_edp(struct drm_device *dev); | |||
339 | extern void intel_edp_link_config(struct intel_encoder *, int *, int *); | 339 | extern void intel_edp_link_config(struct intel_encoder *, int *, int *); |
340 | extern bool intel_encoder_is_pch_edp(struct drm_encoder *encoder); | 340 | extern bool intel_encoder_is_pch_edp(struct drm_encoder *encoder); |
341 | extern int intel_plane_init(struct drm_device *dev, enum pipe pipe); | 341 | extern int intel_plane_init(struct drm_device *dev, enum pipe pipe); |
342 | extern void intel_flush_display_plane(struct drm_i915_private *dev_priv, | ||
343 | enum plane plane); | ||
342 | 344 | ||
343 | /* intel_panel.c */ | 345 | /* intel_panel.c */ |
344 | extern void intel_fixed_panel_mode(struct drm_display_mode *fixed_mode, | 346 | extern void intel_fixed_panel_mode(struct drm_display_mode *fixed_mode, |
@@ -490,4 +492,18 @@ extern int i85x_get_fifo_size(struct drm_device *dev, int plane); | |||
490 | extern int i845_get_fifo_size(struct drm_device *dev, int plane); | 492 | extern int i845_get_fifo_size(struct drm_device *dev, int plane); |
491 | extern int i830_get_fifo_size(struct drm_device *dev, int plane); | 493 | extern int i830_get_fifo_size(struct drm_device *dev, int plane); |
492 | 494 | ||
495 | /* Clock gating */ | ||
496 | extern void ironlake_init_clock_gating(struct drm_device *dev); | ||
497 | extern void gen6_init_clock_gating(struct drm_device *dev); | ||
498 | extern void ivybridge_init_clock_gating(struct drm_device *dev); | ||
499 | extern void valleyview_init_clock_gating(struct drm_device *dev); | ||
500 | extern void g4x_init_clock_gating(struct drm_device *dev); | ||
501 | extern void crestline_init_clock_gating(struct drm_device *dev); | ||
502 | extern void broadwater_init_clock_gating(struct drm_device *dev); | ||
503 | extern void gen3_init_clock_gating(struct drm_device *dev); | ||
504 | extern void i85x_init_clock_gating(struct drm_device *dev); | ||
505 | extern void i830_init_clock_gating(struct drm_device *dev); | ||
506 | extern void ibx_init_clock_gating(struct drm_device *dev); | ||
507 | extern void cpt_init_clock_gating(struct drm_device *dev); | ||
508 | |||
493 | #endif /* __INTEL_DRV_H__ */ | 509 | #endif /* __INTEL_DRV_H__ */ |