• Aditya Swarup's avatar
    drm/i915/adl_s: Add adl-s ddc pin mapping · 7dc1f92f
    Aditya Swarup authored
    ADL-S requires TC pins to set up ddc for Combo PHY B, C, D and E.
    Combo PHY A still uses the old ddc pin mapping.
    
    From VBT, ddc pin info suggests the following mapping:
    VBT 			               DRIVER
    DDI B->ddc_pin=2 should translate to PORT_D->0x9
    DDI C->ddc_pin=3 should translate to PORT_E->0xa
    DDI D->ddc_pin=4 should translate to PORT_F->0xb
    DDI E->ddc_pin=5 should translate to PORT_G->0xc
    
    Adding pin map to facilitate this translation as we cannot use existing
    icl ddc pin map due to conflict with DDI B and DDI C info.
    
    Bspec:20124
    
    v2: Replace IS_ALDERLAKE_S() with HAS_PCH_ADP() as the pin map pairing
    depends on the PCH being used rather than the platform.(mdroper)
    
    v3:
    - Modify adls_port_to_ddc_pin() to make PHY_A the special case for
      check, else return pin mapping based on correct arithmetic with phy
      offset. Remove redundant platform checks and use HAS_PCH_ADP() instead
      of IS_ALDERLAKE_S() in intel_hdmi_ddc_pin().(mdroper)
    
    Cc: Jani Nikula <jani.nikula@intel.com>
    Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Cc: Imre Deak <imre.deak@intel.com>
    Cc: Matt Roper <matthew.d.roper@intel.com>
    Cc: Lucas De Marchi <lucas.demarchi@intel.com>
    Signed-off-by: default avatarAditya Swarup <aditya.swarup@intel.com>
    Reviewed-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
    Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210125140753.347998-9-aditya.swarup@intel.com
    7dc1f92f
intel_vbt_defs.h 23.2 KB