mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
![Jani Nikula](/assets/img/avatar_default.png)
Move assert_panel_unlocked() to intel_pps.c and rename assert_pps_unlocked(). Keep the functionality and the assert code together. There's still a bit of a split between the eDP PPS usage in intel_pps.c and all the other PPS usage, and assert_pps_unlocked() is arguably more related to the latter. However, intel_pps.c is the best fit for anything touching the PPS registers. Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/a9b77692a145891789eefb0447e082cfc22aaa85.1632992608.git.jani.nikula@intel.com
55 lines
1.8 KiB
C
55 lines
1.8 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2020 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_PPS_H__
|
|
#define __INTEL_PPS_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include "intel_wakeref.h"
|
|
|
|
enum pipe;
|
|
struct drm_i915_private;
|
|
struct intel_connector;
|
|
struct intel_crtc_state;
|
|
struct intel_dp;
|
|
struct intel_encoder;
|
|
|
|
intel_wakeref_t intel_pps_lock(struct intel_dp *intel_dp);
|
|
intel_wakeref_t intel_pps_unlock(struct intel_dp *intel_dp, intel_wakeref_t wakeref);
|
|
|
|
#define with_intel_pps_lock(dp, wf) \
|
|
for ((wf) = intel_pps_lock(dp); (wf); (wf) = intel_pps_unlock((dp), (wf)))
|
|
|
|
void intel_pps_backlight_on(struct intel_dp *intel_dp);
|
|
void intel_pps_backlight_off(struct intel_dp *intel_dp);
|
|
void intel_pps_backlight_power(struct intel_connector *connector, bool enable);
|
|
|
|
bool intel_pps_vdd_on_unlocked(struct intel_dp *intel_dp);
|
|
void intel_pps_vdd_off_unlocked(struct intel_dp *intel_dp, bool sync);
|
|
void intel_pps_on_unlocked(struct intel_dp *intel_dp);
|
|
void intel_pps_off_unlocked(struct intel_dp *intel_dp);
|
|
void intel_pps_check_power_unlocked(struct intel_dp *intel_dp);
|
|
|
|
void intel_pps_vdd_on(struct intel_dp *intel_dp);
|
|
void intel_pps_on(struct intel_dp *intel_dp);
|
|
void intel_pps_off(struct intel_dp *intel_dp);
|
|
void intel_pps_vdd_off_sync(struct intel_dp *intel_dp);
|
|
bool intel_pps_have_power(struct intel_dp *intel_dp);
|
|
void intel_pps_wait_power_cycle(struct intel_dp *intel_dp);
|
|
|
|
void intel_pps_init(struct intel_dp *intel_dp);
|
|
void intel_pps_encoder_reset(struct intel_dp *intel_dp);
|
|
void intel_pps_reset_all(struct drm_i915_private *i915);
|
|
|
|
void vlv_pps_init(struct intel_encoder *encoder,
|
|
const struct intel_crtc_state *crtc_state);
|
|
|
|
void intel_pps_unlock_regs_wa(struct drm_i915_private *i915);
|
|
void intel_pps_setup(struct drm_i915_private *i915);
|
|
|
|
void assert_pps_unlocked(struct drm_i915_private *i915, enum pipe pipe);
|
|
|
|
#endif /* __INTEL_PPS_H__ */
|