#include <linux/kernel.h>
#include <linux/string_helpers.h>
#include "i915_drv.h"
#include "intel_de.h"
#include "intel_display_types.h"
#include "intel_dsi.h"
#include "vlv_dsi_pll.h"
#include "vlv_dsi_pll_regs.h"
#include "vlv_sideband.h"
static const u16 lfsr_converts[] = …;
static u32 dsi_clk_from_pclk(u32 pclk, enum mipi_dsi_pixel_format fmt,
int lane_count)
{ … }
static int dsi_calc_mnp(struct drm_i915_private *dev_priv,
struct intel_crtc_state *config,
int target_dsi_clk)
{ … }
static int vlv_dsi_pclk(struct intel_encoder *encoder,
struct intel_crtc_state *config)
{ … }
int vlv_dsi_pll_compute(struct intel_encoder *encoder,
struct intel_crtc_state *config)
{ … }
void vlv_dsi_pll_enable(struct intel_encoder *encoder,
const struct intel_crtc_state *config)
{ … }
void vlv_dsi_pll_disable(struct intel_encoder *encoder)
{ … }
bool bxt_dsi_pll_is_enabled(struct drm_i915_private *dev_priv)
{ … }
void bxt_dsi_pll_disable(struct intel_encoder *encoder)
{ … }
u32 vlv_dsi_get_pclk(struct intel_encoder *encoder,
struct intel_crtc_state *config)
{ … }
static int bxt_dsi_pclk(struct intel_encoder *encoder,
const struct intel_crtc_state *config)
{ … }
u32 bxt_dsi_get_pclk(struct intel_encoder *encoder,
struct intel_crtc_state *config)
{ … }
void vlv_dsi_reset_clocks(struct intel_encoder *encoder, enum port port)
{ … }
static void glk_dsi_program_esc_clock(struct drm_device *dev,
const struct intel_crtc_state *config)
{ … }
static void bxt_dsi_program_clocks(struct drm_device *dev, enum port port,
const struct intel_crtc_state *config)
{ … }
int bxt_dsi_pll_compute(struct intel_encoder *encoder,
struct intel_crtc_state *config)
{ … }
void bxt_dsi_pll_enable(struct intel_encoder *encoder,
const struct intel_crtc_state *config)
{ … }
void bxt_dsi_reset_clocks(struct intel_encoder *encoder, enum port port)
{ … }
static void assert_dsi_pll(struct drm_i915_private *i915, bool state)
{ … }
void assert_dsi_pll_enabled(struct drm_i915_private *i915)
{ … }
void assert_dsi_pll_disabled(struct drm_i915_private *i915)
{ … }