]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Align power domain names with port names
authorImre Deak <imre.deak@intel.com>
Fri, 23 Aug 2019 10:07:11 +0000 (13:07 +0300)
committerImre Deak <imre.deak@intel.com>
Wed, 28 Aug 2019 16:33:42 +0000 (19:33 +0300)
commit6f9e602ccecfbdd6f7710eac75fc1bb0bf7255aa
treee6dff38aefc5b9d99530fef57f67d29801fd7193
parentdefecebe2d2eb7ec9d28e1009d090df949fa8872
drm/i915: Align power domain names with port names

There is a difference in BSpec's and the driver's designation of DDI
ports. BSpec uses the following names:
- before GEN11:
  BSpec/driver:
   port A/B/C/D etc
- GEN11:
  BSpec/driver:
port A-F
- GEN12:
  BSpec:
   port A/B/C for combo PHY ports
port TC1-6 for Type C PHY ports
  driver:
port A-I.
  The driver's port D name matches BSpec's TC1 port name.

So far power domains were named according to the BSpec designation, to
make it easier to match the code against the specification. That however
can be confusing when a power domain needs to be matched to a port on
GEN12+. To resolve that use the driver's port A-I designation for power
domain names too and rename the corresponding power wells so that they
reflect the mapping from the driver's to BSpec's port name.

Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190823100711.27833-1-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_display_power.c
drivers/gpu/drm/i915/display/intel_display_power.h
drivers/gpu/drm/i915/i915_debugfs.c