Skip to contentSkip to conversation

drm/i915: Address broxton phy registers based on phy and channel number

PATCH Superseded Ander Conselvan de Oliveira 1 participant 1 message Oct 7, 2016 1 message not in the archive

Subsystems (2)

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#1 lore raw

PATCH 1/1 drm/i915: Address broxton phy registers based on phy and channel number

In reply to a message not in the archive

The port registers related to the phys in broxton map to different channels and specific phys. Make that mapping explicit.

v2: Pass enum dpio_phy to macros instead of mmio base. (Imre)

v3: Fix typo in macros. (Imre)

---
 drivers/gpu/drm/i915/i915_drv.h       |   2 +
 drivers/gpu/drm/i915/i915_reg.h       | 141 ++++++++++++++++++----------------
 drivers/gpu/drm/i915/intel_dpio_phy.c |  80 +++++++++++++++----
 drivers/gpu/drm/i915/intel_dpll_mgr.c |  84 +++++++++++---------
 4 files changed, 185 insertions(+), 122 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +2 -0
index 77f1374..c3fa29a 100644
@@ -3735,6 +3735,8 @@ u32 vlv_flisdsi_read(struct drm_i915_private *dev_priv, u32 reg);
 void vlv_flisdsi_write(struct drm_i915_private *dev_priv, u32 reg, u32 val);
 
 /* intel_dpio_phy.c */
+void bxt_port_to_phy_channel(enum port port,
+			     u32 *phy, enum dpio_channel *ch);
 void bxt_ddi_phy_set_signal_level(struct drm_i915_private *dev_priv,
 				  enum port port, u32 margin, u32 scale,
 				  u32 enable, u32 deemphasis);
drivers/gpu/drm/i915/i915_reg.h +73 -68

256 lines not on this page · raw message

drivers/gpu/drm/i915/intel_dpio_phy.c +64 -16

156 lines not on this page · raw message

drivers/gpu/drm/i915/intel_dpll_mgr.c +46 -38

188 lines not on this page · raw message

Signature · 6 lines
2.5.5

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx