mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
drm/i915/display: convert intel_display.c to struct intel_display
Going forward, struct intel_display is the main display device data pointer. Convert as much as possible of intel_display.c to struct intel_display. This exposes a couple of outside issues that need to be fixed as well, in a register macro and a DSI PLL stub. Reviewed-by: Nemesa Garg <nemesa.garg@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/1c0bafcb978d1cf4f4d54be2f497386f5302f7c8.1741084010.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
055e8af4c9
commit
6069b21f58
File diff suppressed because it is too large
Load Diff
|
|
@ -23,7 +23,6 @@ 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,
|
||||
|
|
@ -34,9 +33,14 @@ u32 bxt_dsi_get_pclk(struct intel_encoder *encoder,
|
|||
void bxt_dsi_reset_clocks(struct intel_encoder *encoder, enum port port);
|
||||
|
||||
#ifdef I915
|
||||
bool bxt_dsi_pll_is_enabled(struct drm_i915_private *dev_priv);
|
||||
void assert_dsi_pll_enabled(struct intel_display *display);
|
||||
void assert_dsi_pll_disabled(struct intel_display *display);
|
||||
#else
|
||||
static inline bool bxt_dsi_pll_is_enabled(struct drm_i915_private *dev_priv)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
static inline void assert_dsi_pll_enabled(struct intel_display *display)
|
||||
{
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4165,8 +4165,8 @@ enum skl_power_gate {
|
|||
_MMIO_PIPE(pipe, _PIPE_FLIPDONETMSTMP_A, _PIPE_FLIPDONETMSTMP_B)
|
||||
|
||||
#define _VLV_PIPE_MSA_MISC_A 0x70048
|
||||
#define VLV_PIPE_MSA_MISC(pipe) \
|
||||
_MMIO_PIPE2(dev_priv, pipe, _VLV_PIPE_MSA_MISC_A)
|
||||
#define VLV_PIPE_MSA_MISC(__display, pipe) \
|
||||
_MMIO_PIPE2(__display, pipe, _VLV_PIPE_MSA_MISC_A)
|
||||
#define VLV_MSA_MISC1_HW_ENABLE REG_BIT(31)
|
||||
#define VLV_MSA_MISC1_SW_S3D_MASK REG_GENMASK(2, 0) /* MSA MISC1 3:1 */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user