mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
![Jani Nikula](/assets/img/avatar_default.png)
We use encoder->get_buf_trans() in many places, for example intel_ddi_dp_voltage_max(), and the hook was set to some old platform's function for DG2 SNPS PHY. Convert SNPS PHY to use the same translation mechanisms as everything else. Cc: Manasi Navare <manasi.d.navare@intel.com> Cc: Matt Roper <matthew.d.roper@intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210813115151.19290-2-jani.nikula@intel.com
36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2019 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_SNPS_PHY_H__
|
|
#define __INTEL_SNPS_PHY_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct drm_i915_private;
|
|
struct intel_encoder;
|
|
struct intel_crtc_state;
|
|
struct intel_mpllb_state;
|
|
enum phy;
|
|
|
|
void intel_snps_phy_wait_for_calibration(struct drm_i915_private *dev_priv);
|
|
void intel_snps_phy_update_psr_power_state(struct drm_i915_private *dev_priv,
|
|
enum phy phy, bool enable);
|
|
|
|
int intel_mpllb_calc_state(struct intel_crtc_state *crtc_state,
|
|
struct intel_encoder *encoder);
|
|
void intel_mpllb_enable(struct intel_encoder *encoder,
|
|
const struct intel_crtc_state *crtc_state);
|
|
void intel_mpllb_disable(struct intel_encoder *encoder);
|
|
void intel_mpllb_readout_hw_state(struct intel_encoder *encoder,
|
|
struct intel_mpllb_state *pll_state);
|
|
int intel_mpllb_calc_port_clock(struct intel_encoder *encoder,
|
|
const struct intel_mpllb_state *pll_state);
|
|
|
|
int intel_snps_phy_check_hdmi_link_rate(int clock);
|
|
void intel_snps_phy_ddi_vswing_sequence(struct intel_encoder *encoder,
|
|
const struct intel_crtc_state *crtc_state,
|
|
int level);
|
|
|
|
#endif /* __INTEL_SNPS_PHY_H__ */
|