]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/xe2lpd: Update C20 algorithm to include tx_misc
authorGustavo Sousa <gustavo.sousa@intel.com>
Wed, 23 Oct 2024 15:33:46 +0000 (12:33 -0300)
committerMatt Roper <matthew.d.roper@intel.com>
Mon, 28 Oct 2024 19:57:39 +0000 (12:57 -0700)
commit5ddd0c6c14255ac821e480d662c9e22d380805f7
treec4fc1de4a20e3a9538e48e5bb01af12e45372a61
parentb67d84f25d42e1319f89e44b55e9ef1aa0de21eb
drm/i915/xe2lpd: Update C20 algorithm to include tx_misc

There has been an update to the BSpec in which we need to set
tx_misc=0x5 field for C20 TX Context programming for HDMI TMDS for
Xe2_LPD and newer. That field is mapped to the bits 7:0 of
SRAM_GENERIC_<A/B>_TX_CNTX_CFG_1, which in turn translates to tx[1] of
our state struct. Update the algorithm to reflect this change.

v2:
  - Fix Bspec reference (Sai Teja)
  - Use struct intel_display instead of drm_i915_private. (Jani)
  - Use the correct bit width for C20_PHY_TX_MISC_MASK. (Jani)

Bspec: 74491
Cc: Dnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Sai Teja Pottumuttu <sai.teja.pottumuttu@intel.com> #v1
Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241023153352.144146-3-gustavo.sousa@intel.com
drivers/gpu/drm/i915/display/intel_cx0_phy.c
drivers/gpu/drm/i915/display/intel_cx0_phy_regs.h