This pulls a large chunk of the pll calculation code out of intel_display.c to a new file. One function makes sense to be an inline, otherwise this is pretty much a straight copy cover. Also all the remaining hooks for g45 and older end up the same now. Signed-off-by: Dave Airlie <airlied@redhat.com> [Jani: cleaned up intel_dpll.h a bit, de-duped intel_panel_use_ssc().] Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/74b58e0572858b5d1734818ca594a23040d7d44f.1610622609.git.jani.nikula@intel.com
24 lines
651 B
C
24 lines
651 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2020 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _INTEL_DPLL_H_
|
|
#define _INTEL_DPLL_H_
|
|
|
|
struct dpll;
|
|
struct drm_i915_private;
|
|
struct intel_crtc;
|
|
struct intel_crtc_state;
|
|
|
|
void intel_dpll_init_clock_hook(struct drm_i915_private *dev_priv);
|
|
int vlv_calc_dpll_params(int refclk, struct dpll *clock);
|
|
int pnv_calc_dpll_params(int refclk, struct dpll *clock);
|
|
int i9xx_calc_dpll_params(int refclk, struct dpll *clock);
|
|
void vlv_compute_dpll(struct intel_crtc *crtc,
|
|
struct intel_crtc_state *pipe_config);
|
|
void chv_compute_dpll(struct intel_crtc *crtc,
|
|
struct intel_crtc_state *pipe_config);
|
|
|
|
#endif
|