-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drm/i915/dsi: split out vlv_dsi_pll.h
Follow the convention of corresponding .h for .c. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20211122111504.223248-2-jani.nikula@intel.com
- Loading branch information
Jani Nikula
committed
Nov 23, 2021
1 parent
aebdd74
commit 01e5262
Showing
6 changed files
with
42 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* SPDX-License-Identifier: MIT */ | ||
/* | ||
* Copyright © 2021 Intel Corporation | ||
*/ | ||
|
||
#ifndef __VLV_DSI_PLL_H__ | ||
#define __VLV_DSI_PLL_H__ | ||
|
||
#include <linux/types.h> | ||
|
||
enum port; | ||
struct drm_i915_private; | ||
struct intel_crtc_state; | ||
struct intel_encoder; | ||
|
||
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); | ||
u32 vlv_dsi_get_pclk(struct intel_encoder *encoder, | ||
struct intel_crtc_state *config); | ||
void vlv_dsi_reset_clocks(struct intel_encoder *encoder, enum port port); | ||
|
||
bool bxt_dsi_pll_is_enabled(struct drm_i915_private *dev_priv); | ||
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_pll_disable(struct intel_encoder *encoder); | ||
u32 bxt_dsi_get_pclk(struct intel_encoder *encoder, | ||
struct intel_crtc_state *config); | ||
void bxt_dsi_reset_clocks(struct intel_encoder *encoder, enum port port); | ||
|
||
void assert_dsi_pll_enabled(struct drm_i915_private *i915); | ||
void assert_dsi_pll_disabled(struct drm_i915_private *i915); | ||
|
||
#endif /* __VLV_DSI_PLL_H__ */ |