drm/i915/mtl: Add display power wells
authorImre Deak <imre.deak@intel.com>
Fri, 2 Sep 2022 06:03:37 +0000 (23:03 -0700)
committerRadhakrishna Sripada <radhakrishna.sripada@intel.com>
Mon, 12 Sep 2022 22:22:04 +0000 (15:22 -0700)
commit40151be79668232187b1ba7e00983be76a7f5845
tree0f43daadb231aab36cfc42b031b75febfc58da3c
parente5d464d02f0681c4677c0bb5f6c0a70c8be78ab6
drm/i915/mtl: Add display power wells

Add support for display power wells on MTL. The differences from XE_LPD:
- The AUX HW block is moved to the PICA block, where the registers are on
  an always-on power well and the functionality needs to be powered on/off
  via the AUX_CH_CTL register: [1], [2]
- The DDI IO power on/off programming sequence is moved to the PHY PLL
  enable/disable sequence. [3], [4], [5]

Bspec: [1] 49233, [2] 65247, [3] 64568, [4] 65451, [5] 65450

v2:
 - Update the comment in aux power well enable
 - Reuse the noop sync fn for aux sync.
 - Use REG_BIT for new register bit definitions

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220902060342.151824-7-radhakrishna.sripada@intel.com
drivers/gpu/drm/i915/display/intel_display_power_map.c
drivers/gpu/drm/i915/display/intel_display_power_well.c
drivers/gpu/drm/i915/display/intel_display_power_well.h
drivers/gpu/drm/i915/display/intel_dp_aux.c
drivers/gpu/drm/i915/i915_reg.h