Commit 19ff503b authored by Jani Nikula's avatar Jani Nikula

drm/i915/display: add I915 conditional build to intel_pch_refclk.h

Add stubs for !I915.
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Acked-by: default avatarDave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/4359b34cbcff6199b5e42b5311c815aa6f4a167c.1694514689.git.jani.nikula@intel.com
parent 3c0e538a
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
struct drm_i915_private; struct drm_i915_private;
struct intel_crtc_state; struct intel_crtc_state;
#ifdef I915
void lpt_program_iclkip(const struct intel_crtc_state *crtc_state); void lpt_program_iclkip(const struct intel_crtc_state *crtc_state);
void lpt_disable_iclkip(struct drm_i915_private *dev_priv); void lpt_disable_iclkip(struct drm_i915_private *dev_priv);
int lpt_get_iclkip(struct drm_i915_private *dev_priv); int lpt_get_iclkip(struct drm_i915_private *dev_priv);
...@@ -18,5 +19,27 @@ int lpt_iclkip(const struct intel_crtc_state *crtc_state); ...@@ -18,5 +19,27 @@ int lpt_iclkip(const struct intel_crtc_state *crtc_state);
void intel_init_pch_refclk(struct drm_i915_private *dev_priv); void intel_init_pch_refclk(struct drm_i915_private *dev_priv);
void lpt_disable_clkout_dp(struct drm_i915_private *dev_priv); void lpt_disable_clkout_dp(struct drm_i915_private *dev_priv);
#else
static inline void lpt_program_iclkip(const struct intel_crtc_state *crtc_state)
{
}
static inline void lpt_disable_iclkip(struct drm_i915_private *dev_priv)
{
}
static inline int lpt_get_iclkip(struct drm_i915_private *dev_priv)
{
return 0;
}
static inline int lpt_iclkip(const struct intel_crtc_state *crtc_state)
{
return 0;
}
static inline void intel_init_pch_refclk(struct drm_i915_private *dev_priv)
{
}
static inline void lpt_disable_clkout_dp(struct drm_i915_private *dev_priv)
{
}
#endif
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment