[Intel-gfx] [PATCH v4 07/20] drm/i915/icl: Define AUX lane registers for Port A/B
Jani Nikula
jani.nikula at intel.com
Fri Jul 6 09:16:08 UTC 2018
On Thu, 05 Jul 2018, Madhav Chauhan <madhav.chauhan at intel.com> wrote:
> This patch defines AUX lane registers for PORT_PCS_DW1,
> PORT_TX_DW2, PORT_TX_DW4, PORT_TX_DW5 used during
> dsi enabling.
>
> v2: Review comments from Jani N:
> - Define _ICL_PORT_PCS_DW1_AUX_A for consistency
> - Three spaces for bitfield definition.
>
> Signed-off-by: Madhav Chauhan <madhav.chauhan at intel.com>
> Reviewed-by: Jani Nikula <jani.nikula at intel.com>
Pushed up to and including this patch.
BR,
Jani.
> ---
> drivers/gpu/drm/i915/i915_reg.h | 23 +++++++++++++++++++++++
> 1 file changed, 23 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
> index cd00350..f84e7ff 100644
> --- a/drivers/gpu/drm/i915/i915_reg.h
> +++ b/drivers/gpu/drm/i915/i915_reg.h
> @@ -1780,16 +1780,22 @@ enum i915_power_well_id {
> _CNL_PORT_PCS_DW1_LN0_D, \
> _CNL_PORT_PCS_DW1_LN0_AE, \
> _CNL_PORT_PCS_DW1_LN0_F))
> +
> #define _ICL_PORT_PCS_DW1_GRP_A 0x162604
> #define _ICL_PORT_PCS_DW1_GRP_B 0x6C604
> #define _ICL_PORT_PCS_DW1_LN0_A 0x162804
> #define _ICL_PORT_PCS_DW1_LN0_B 0x6C804
> +#define _ICL_PORT_PCS_DW1_AUX_A 0x162304
> +#define _ICL_PORT_PCS_DW1_AUX_B 0x6c304
> #define ICL_PORT_PCS_DW1_GRP(port) _MMIO_PORT(port,\
> _ICL_PORT_PCS_DW1_GRP_A, \
> _ICL_PORT_PCS_DW1_GRP_B)
> #define ICL_PORT_PCS_DW1_LN0(port) _MMIO_PORT(port, \
> _ICL_PORT_PCS_DW1_LN0_A, \
> _ICL_PORT_PCS_DW1_LN0_B)
> +#define ICL_PORT_PCS_DW1_AUX(port) _MMIO_PORT(port, \
> + _ICL_PORT_PCS_DW1_AUX_A, \
> + _ICL_PORT_PCS_DW1_AUX_B)
> #define COMMON_KEEPER_EN (1 << 26)
>
> /* CNL Port TX registers */
> @@ -1826,16 +1832,23 @@ enum i915_power_well_id {
> #define _ICL_PORT_TX_DW2_GRP_B 0x6C688
> #define _ICL_PORT_TX_DW2_LN0_A 0x162888
> #define _ICL_PORT_TX_DW2_LN0_B 0x6C888
> +#define _ICL_PORT_TX_DW2_AUX_A 0x162388
> +#define _ICL_PORT_TX_DW2_AUX_B 0x6c388
> #define ICL_PORT_TX_DW2_GRP(port) _MMIO_PORT(port, \
> _ICL_PORT_TX_DW2_GRP_A, \
> _ICL_PORT_TX_DW2_GRP_B)
> #define ICL_PORT_TX_DW2_LN0(port) _MMIO_PORT(port, \
> _ICL_PORT_TX_DW2_LN0_A, \
> _ICL_PORT_TX_DW2_LN0_B)
> +#define ICL_PORT_TX_DW2_AUX(port) _MMIO_PORT(port, \
> + _ICL_PORT_TX_DW2_AUX_A, \
> + _ICL_PORT_TX_DW2_AUX_B)
> #define SWING_SEL_UPPER(x) (((x) >> 3) << 15)
> #define SWING_SEL_UPPER_MASK (1 << 15)
> #define SWING_SEL_LOWER(x) (((x) & 0x7) << 11)
> #define SWING_SEL_LOWER_MASK (0x7 << 11)
> +#define FRC_LATENCY_OPTIM_MASK (0x7 << 8)
> +#define FRC_LATENCY_OPTIM_VAL(x) ((x) << 8)
> #define RCOMP_SCALAR(x) ((x) << 0)
> #define RCOMP_SCALAR_MASK (0xFF << 0)
>
> @@ -1851,6 +1864,8 @@ enum i915_power_well_id {
> #define _ICL_PORT_TX_DW4_LN0_A 0x162890
> #define _ICL_PORT_TX_DW4_LN1_A 0x162990
> #define _ICL_PORT_TX_DW4_LN0_B 0x6C890
> +#define _ICL_PORT_TX_DW4_AUX_A 0x162390
> +#define _ICL_PORT_TX_DW4_AUX_B 0x6c390
> #define ICL_PORT_TX_DW4_GRP(port) _MMIO_PORT(port, \
> _ICL_PORT_TX_DW4_GRP_A, \
> _ICL_PORT_TX_DW4_GRP_B)
> @@ -1859,6 +1874,9 @@ enum i915_power_well_id {
> _ICL_PORT_TX_DW4_LN0_B) + \
> ((ln) * (_ICL_PORT_TX_DW4_LN1_A - \
> _ICL_PORT_TX_DW4_LN0_A)))
> +#define ICL_PORT_TX_DW4_AUX(port) _MMIO_PORT(port, \
> + _ICL_PORT_TX_DW4_AUX_A, \
> + _ICL_PORT_TX_DW4_AUX_B)
> #define LOADGEN_SELECT (1 << 31)
> #define POST_CURSOR_1(x) ((x) << 12)
> #define POST_CURSOR_1_MASK (0x3F << 12)
> @@ -1873,12 +1891,17 @@ enum i915_power_well_id {
> #define _ICL_PORT_TX_DW5_GRP_B 0x6C694
> #define _ICL_PORT_TX_DW5_LN0_A 0x162894
> #define _ICL_PORT_TX_DW5_LN0_B 0x6C894
> +#define _ICL_PORT_TX_DW5_AUX_A 0x162394
> +#define _ICL_PORT_TX_DW5_AUX_B 0x6c394
> #define ICL_PORT_TX_DW5_GRP(port) _MMIO_PORT(port, \
> _ICL_PORT_TX_DW5_GRP_A, \
> _ICL_PORT_TX_DW5_GRP_B)
> #define ICL_PORT_TX_DW5_LN0(port) _MMIO_PORT(port, \
> _ICL_PORT_TX_DW5_LN0_A, \
> _ICL_PORT_TX_DW5_LN0_B)
> +#define ICL_PORT_TX_DW5_AUX(port) _MMIO_PORT(port, \
> + _ICL_PORT_TX_DW5_AUX_A, \
> + _ICL_PORT_TX_DW5_AUX_B)
> #define TX_TRAINING_EN (1 << 31)
> #define TAP2_DISABLE (1 << 30)
> #define TAP3_DISABLE (1 << 29)
--
Jani Nikula, Intel Open Source Graphics Center
More information about the Intel-gfx
mailing list