Reintroduce the special PSR AUX CH setup for hsw/bdw. Not all of it was even removed (BDW AUX data registers were left behind). Update the code to use REG_BIT() & co. while at it. v2: Define the SRD_AUX_CTL bits in terms of DP_AUX_CTL bits (Jouni) Add a comment explaining the hand rolled DPCD write (Jouni) Cc: Jouni Högander <jouni.hogander@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230609141404.12729-6-ville.syrjala@linux.intel.com Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
24 lines
558 B
C
24 lines
558 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2020-2021 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_DP_AUX_H__
|
|
#define __INTEL_DP_AUX_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
enum aux_ch;
|
|
struct drm_i915_private;
|
|
struct intel_dp;
|
|
struct intel_encoder;
|
|
|
|
void intel_dp_aux_fini(struct intel_dp *intel_dp);
|
|
void intel_dp_aux_init(struct intel_dp *intel_dp);
|
|
|
|
enum aux_ch intel_dp_aux_ch(struct intel_encoder *encoder);
|
|
|
|
void intel_dp_aux_irq_handler(struct drm_i915_private *i915);
|
|
u32 intel_dp_aux_pack(const u8 *src, int src_bytes);
|
|
|
|
#endif /* __INTEL_DP_AUX_H__ */
|