diff options
author | Maciej Purski <m.purski@samsung.com> | 2017-08-24 10:58:07 +0200 |
---|---|---|
committer | Andrzej Hajda <a.hajda@samsung.com> | 2017-10-11 13:14:25 +0200 |
commit | e25f1f7c94e16d4493398300efa03e5b6c77fcbf (patch) | |
tree | 3d521accc824e5217fcdb7e41024854c01d1fb70 /include/drm | |
parent | da184deeb8aeac6cadf45f01ce9bc4197940a059 (diff) | |
download | linux-e25f1f7c94e16d4493398300efa03e5b6c77fcbf.tar.gz linux-e25f1f7c94e16d4493398300efa03e5b6c77fcbf.tar.bz2 linux-e25f1f7c94e16d4493398300efa03e5b6c77fcbf.zip |
drm/bridge/sii8620: add remote control support
MHL specification defines Remote Control Protocol(RCP) to
send input events between MHL devices.
The driver now recognizes RCP messages and reacts to them
by reporting key events to input subsystem, allowing
a user to control a device using TV remote control.
Signed-off-by: Maciej Purski <m.purski@samsung.com>
Acked-by: Sean Young <sean@mess.org>
Acked-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1503565087-19730-1-git-send-email-m.purski@samsung.com
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/bridge/mhl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/bridge/mhl.h b/include/drm/bridge/mhl.h index fbdfc8d7f3c7..96a5e0f6ff12 100644 --- a/include/drm/bridge/mhl.h +++ b/include/drm/bridge/mhl.h @@ -262,6 +262,10 @@ enum { #define MHL_RAPK_UNSUPPORTED 0x02 /* Rcvd RAP action code not supported */ #define MHL_RAPK_BUSY 0x03 /* Responder too busy to respond */ +/* Bit masks for RCP messages */ +#define MHL_RCP_KEY_RELEASED_MASK 0x80 +#define MHL_RCP_KEY_ID_MASK 0x7F + /* * Error status codes for RCPE messages */ |