mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 12:35:52 +02:00
drm/i915/alpm: Add own define for LFPS count
Add own define for LFPS count and use it for the configuration. This new define will be used for calculating ALPM parameters as well. Signed-off-by: Jouni Högander <jouni.hogander@intel.com> Reviewed-by: Animesh Manna <animesh.manna@intel.com> Link: https://lore.kernel.org/r/20250829053929.3585636-3-jouni.hogander@intel.com
This commit is contained in:
parent
3b5b2567f8
commit
e9c62c8654
|
|
@ -22,6 +22,8 @@
|
|||
(SILENCE_PERIOD_MAX_TIME - \
|
||||
SILENCE_PERIOD_MIN_TIME) / 2)
|
||||
|
||||
#define LFPS_CYCLE_COUNT 10
|
||||
|
||||
bool intel_alpm_aux_wake_supported(struct intel_dp *intel_dp)
|
||||
{
|
||||
return intel_dp->alpm_dpcd & DP_ALPM_CAP;
|
||||
|
|
@ -403,7 +405,7 @@ void intel_alpm_port_configure(struct intel_dp *intel_dp,
|
|||
PORT_ALPM_CTL_MAX_PHY_SWING_HOLD(0) |
|
||||
PORT_ALPM_CTL_SILENCE_PERIOD(
|
||||
intel_dp->alpm_parameters.silence_period_sym_clocks);
|
||||
lfps_ctl_val = PORT_ALPM_LFPS_CTL_LFPS_CYCLE_COUNT(10) |
|
||||
lfps_ctl_val = PORT_ALPM_LFPS_CTL_LFPS_CYCLE_COUNT(LFPS_CYCLE_COUNT) |
|
||||
PORT_ALPM_LFPS_CTL_LFPS_HALF_CYCLE_DURATION(
|
||||
intel_dp->alpm_parameters.lfps_half_cycle_num_of_syms) |
|
||||
PORT_ALPM_LFPS_CTL_FIRST_LFPS_HALF_CYCLE_DURATION(
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user