drm/i915/cnl; Add macro to get PORT_TX register
authorMahesh Kumar <mahesh1.kumar@intel.com>
Wed, 14 Mar 2018 08:06:52 +0000 (13:36 +0530)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 14 Mar 2018 21:36:56 +0000 (14:36 -0700)
commit4635b573634c7028043244dbc1141ef57341deb2
tree96e366fd17fea097ae7d03408fa95849cf6694df
parentad055fb8e010e4ff37f66aeed1d380329bddce67
drm/i915/cnl; Add macro to get PORT_TX register

This patch creates a new macro to get PORT_TX register for any given DW.
This removes the need of defining register address for each port & DW.

Changes since V1:
 - Use underscope prefix, as macro isn't returning an mmio reg(Lucas)
 - Merge patch 1 & 2 of the series
Changes since V2:
 - remove _MMIO_PORT6_LN macro (Rodrigo)

Signed-off-by: Mahesh Kumar <mahesh1.kumar@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180314080653.9444-2-mahesh1.kumar@intel.com
drivers/gpu/drm/i915/i915_reg.h