summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2016-03-18 12:34:59 -0700
committerTao Huang <huangtao@rock-chips.com>2018-11-26 21:16:13 +0800
commitbfd253e11178de6b2a6936b3616b3943bb9193ba (patch)
treed8c304b68f47babc083d4e5e9f671c05dc8021a2 /include/uapi
parent2c9beff6a3096670c2801b99416e1ba6dbfdae53 (diff)
BACKPORT: drm: Add an encoder and connector type enum for DPI.
Right now exynos is exposing DPI as a TMDS encoder and VGA connector, which seems rather misleading. This isn't just an internal detail, since xrandr actually exposes "VGA" as the output name. Define some new enums so that vc4's DPI can have a more informative name. I considered other names for the connector as well. For VC4, the Adafruit DPI kippah takes the 28 GPIO pins and routes them to a standard-ish 40-pin FPC connector, but "40-pin FPC" doesn't uniquely identify an ordering of pins (apparently some other orderings exist), doesn't explain things as well for the user (who, if anything, knows their product is a DPI kippah/panel combo), and actually doesn't have to exist (one could connect the 28 GPIOs directly to something else). Simply "DPI" seems like a good compromise name to distinguish from the HDMI, DSI, and TV connectors . Change-Id: Ic7b79c2e50f3629f56bc78c432834e2c58938cd9 Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com> (cherry picked from commit 0b27c02a7f1c697694f2ad6d6517e7dbf9ecfa39)
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/drm/drm_mode.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/drm/drm_mode.h b/include/uapi/drm/drm_mode.h
index ddb2bcf97760..fd3126a04b57 100644
--- a/include/uapi/drm/drm_mode.h
+++ b/include/uapi/drm/drm_mode.h
@@ -221,6 +221,7 @@ struct drm_mode_get_plane_res {
#define DRM_MODE_ENCODER_VIRTUAL 5
#define DRM_MODE_ENCODER_DSI 6
#define DRM_MODE_ENCODER_DPMST 7
+#define DRM_MODE_ENCODER_DPI 8
struct drm_mode_get_encoder {
__u32 encoder_id;
@@ -262,6 +263,7 @@ enum drm_mode_subconnector {
#define DRM_MODE_CONNECTOR_eDP 14
#define DRM_MODE_CONNECTOR_VIRTUAL 15
#define DRM_MODE_CONNECTOR_DSI 16
+#define DRM_MODE_CONNECTOR_DPI 17
struct drm_mode_get_connector {