From: Jani Nikula <jani.nikula@linux.intel.com>
To: clinton.a.taylor@intel.com, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm/cec: Add CEC over Aux register definitions
Date: Thu, 20 Apr 2017 17:44:34 +0300 [thread overview]
Message-ID: <87zifbqgtp.fsf@intel.com> (raw)
In-Reply-To: <1492618622-22426-1-git-send-email-clinton.a.taylor@intel.com>
On Wed, 19 Apr 2017, clinton.a.taylor@intel.com wrote:
> From: Clint Taylor <clinton.a.taylor@intel.com>
>
> Adding DPCD register definitions from the DP 1.3 specification for CEC
> over AUX support.
>
> Signed-off-by: Clint Taylor <clinton.a.taylor@intel.com>
Literally all DPCD macros in the file are prefixed with DP_. With that
added to everything here, Reviewed-by: Jani Nikula <jani.nikula@intel.com>
BR,
Jani.
> ---
> include/drm/drm_dp_helper.h | 59 +++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 59 insertions(+)
>
> diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h
> index c0bd0d7..d188aff 100644
> --- a/include/drm/drm_dp_helper.h
> +++ b/include/drm/drm_dp_helper.h
> @@ -603,6 +603,9 @@
> #define DP_DEVICE_SERVICE_IRQ_VECTOR_ESI0 0x2003 /* 1.2 */
>
> #define DP_DEVICE_SERVICE_IRQ_VECTOR_ESI1 0x2004 /* 1.2 */
> +# define RX_GTC_MSTR_REQ_STATUS_CHANGE (1 << 0)
> +# define LOCK_ACQUISITION_REQUEST (1 << 1)
> +# define CEC_IRQ (1 << 2)
>
> #define DP_LINK_SERVICE_IRQ_VECTOR_ESI0 0x2005 /* 1.2 */
>
> @@ -636,6 +639,62 @@
> # define DP_VSC_EXT_CEA_SDP_SUPPORTED (1 << 6) /* DP 1.4 */
> # define DP_VSC_EXT_CEA_SDP_CHAINING_SUPPORTED (1 << 7) /* DP 1.4 */
>
> +/* HDMI CEC tunneling over AUX DP 1.3 section 5.3.3.3.1 DPCD 1.4+ */
> +#define CEC_TUNNELING_CAPABILITY 0x3000
> +# define CEC_TUNNELING_CAPABLE (1 << 0)
> +# define CEC_SNOOPING_CAPABLE (1 << 1)
> +# define CEC_MULTIPLE_LA_CAPABLE (1 << 2)
> +
> +#define CEC_TUNNELING_CONTROL 0x3001
> +# define CEC_TUNNELING_ENABLE (1 << 0)
> +# define CEC_SNOOPING_ENABLE (1 << 1)
> +
> +#define CEC_RX_MESSAGE_INFO 0x3002
> +# define CEC_RX_MESSAGE_LEN_MASK (0xf << 0)
> +# define CEC_RX_MESSAGE_LEN_SHIFT 0
> +# define CEC_RX_MESSAGE_HPD_STATE (1 << 4)
> +# define CEC_RX_MESSAGE_HPD_LOST (1 << 5)
> +# define CEC_RX_MESSAGE_ACKED (1 << 6)
> +# define CEC_RX_MESSAGE_ENDED (1 << 7)
> +
> +#define CEC_TX_MESSAGE_INFO 0x3003
> +# define CEC_TX_MESSAGE_LEN_MASK (0xf << 0)
> +# define CEC_TX_MESSAGE_LEN_SHIFT 0
> +# define CEC_TX_RETRY_COUNT_MASK (0x7 << 4)
> +# define CEC_TX_RETRY_COUNT_SHIFT 4
> +# define CEC_TX_MESSAGE_SEND (1 << 7)
> +
> +#define CEC_TUNNELING_IRQ_FLAGS 0x3004
> +# define CEC_RX_MESSAGE_INFO_VALID (1 << 0)
> +# define CEC_RX_MESSAGE_OVERFLOW (1 << 1)
> +# define CEC_TX_MESSAGE_SENT (1 << 4)
> +# define CEC_TX_LINE_ERROR (1 << 5)
> +# define CEC_TX_ADDRESS_NACK_ERROR (1 << 6)
> +# define CEC_TX_DATA_NACK_ERROR (1 << 7)
> +
> +#define CEC_LOGICAL_ADDRESS_MASK 0x300E /* 0x300F word */
> +# define CEC_LOGICAL_ADDRESS_0 (1 << 0)
> +# define CEC_LOGICAL_ADDRESS_1 (1 << 1)
> +# define CEC_LOGICAL_ADDRESS_2 (1 << 2)
> +# define CEC_LOGICAL_ADDRESS_3 (1 << 3)
> +# define CEC_LOGICAL_ADDRESS_4 (1 << 4)
> +# define CEC_LOGICAL_ADDRESS_5 (1 << 5)
> +# define CEC_LOGICAL_ADDRESS_6 (1 << 6)
> +# define CEC_LOGICAL_ADDRESS_7 (1 << 7)
> +#define CEC_LOGICAL_ADDRESS_MASK_2 0x300F /* 0x300E word */
> +# define CEC_LOGICAL_ADDRESS_8 (1 << 0)
> +# define CEC_LOGICAL_ADDRESS_9 (1 << 1)
> +# define CEC_LOGICAL_ADDRESS_10 (1 << 2)
> +# define CEC_LOGICAL_ADDRESS_11 (1 << 3)
> +# define CEC_LOGICAL_ADDRESS_12 (1 << 4)
> +# define CEC_LOGICAL_ADDRESS_13 (1 << 5)
> +# define CEC_LOGICAL_ADDRESS_14 (1 << 6)
> +# define CEC_LOGICAL_ADDRESS_15 (1 << 7)
> +
> +#define CEC_RX_MESSAGE_BUFFER 0x3010
> +#define CEC_TX_MESSAGE_BUFFER 0x3020
> +#define CEC_MESSAGE_BUFFER_LENGTH 0x10
> +
> /* DP 1.2 Sideband message defines */
> /* peer device type - DP 1.2a Table 2-92 */
> #define DP_PEER_DEVICE_NONE 0x0
--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2017-04-20 14:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-19 16:17 [PATCH] drm/cec: Add CEC over Aux register definitions clinton.a.taylor
2017-04-20 14:44 ` Jani Nikula [this message]
2017-04-20 15:19 ` [PATCH v2] " clinton.a.taylor
2017-04-20 15:47 ` [PATCH v3] " clinton.a.taylor
2017-04-21 8:40 ` Jani Nikula
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zifbqgtp.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=clinton.a.taylor@intel.com \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.