drm/i915/psr: Silence period and lfps half cycle
authorJouni Högander <jouni.hogander@intel.com>
Thu, 28 Mar 2024 14:19:26 +0000 (16:19 +0200)
committerJouni Högander <jouni.hogander@intel.com>
Tue, 2 Apr 2024 09:15:43 +0000 (12:15 +0300)
commit0dd21f83698344f008331b2ef7687efb278d8942
tree0b74730ba8189f15a41a697ac546ae783c8975f2
parentda6a9836ac090403e7ffa59e47b4b8c70386d064
drm/i915/psr: Silence period and lfps half cycle

Add get function for silence period and lfps half cycle. Values are taken
from the tables in bspec.

Bspec: 71632

v3:
  - use PORT_ALPM_CTL_SILENCE_PERIOD_MASK instead of value 255
  - use PORT_ALPM_LFPS_CTL_LAST_LFPS_HALF_CYCLE_DURATION_MASK instead of
    value 31
v2:
  - fix some checks
  - add some more comments

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Animesh Manna <animesh.manna@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240328141928.1311284-4-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/display/intel_psr.c