lkml.org 
[lkml]   [2009]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
Subject[PATCH] drm: add connector and encoder types for MIPI displays
Added connector and encoder types for MIPI displays.

Signed-off-by: Thomas G Eaton <thomas.g.eaton@intel.com>

---
diff -uprN -X drm-2.6.orig/Documentation/dontdiff drm-2.6.orig/drivers/gpu/drm/drm_crtc.c drm-2.6/drivers/gpu/drm/drm_crtc.c
--- drm-2.6.orig/drivers/gpu/drm/drm_crtc.c 2009-05-28 10:17:02.000000000 -0700
+++ drm-2.6/drivers/gpu/drm/drm_crtc.c 2009-05-28 10:24:49.000000000 -0700
@@ -146,6 +146,7 @@ static struct drm_conn_prop_enum_list dr
{ DRM_MODE_CONNECTOR_DisplayPort, "DisplayPort", 0 },
{ DRM_MODE_CONNECTOR_HDMIA, "HDMI Type A", 0 },
{ DRM_MODE_CONNECTOR_HDMIB, "HDMI Type B", 0 },
+ { DRM_MODE_CONNECTOR_MIPI, "MIPI", 0 },
};

static struct drm_prop_enum_list drm_encoder_enum_list[] =
@@ -154,6 +155,7 @@ static struct drm_prop_enum_list drm_enc
{ DRM_MODE_ENCODER_TMDS, "TMDS" },
{ DRM_MODE_ENCODER_LVDS, "LVDS" },
{ DRM_MODE_ENCODER_TVDAC, "TV" },
+ { DRM_MODE_ENCODER_MIPI, "MIPI" },
};

char *drm_get_encoder_name(struct drm_encoder *encoder)
diff -uprN -X drm-2.6.orig/Documentation/dontdiff drm-2.6.orig/include/drm/drm_mode.h drm-2.6/include/drm/drm_mode.h
--- drm-2.6.orig/include/drm/drm_mode.h 2009-05-28 10:17:12.000000000 -0700
+++ drm-2.6/include/drm/drm_mode.h 2009-05-28 10:23:13.000000000 -0700
@@ -121,6 +121,7 @@ struct drm_mode_crtc {
#define DRM_MODE_ENCODER_TMDS 2
#define DRM_MODE_ENCODER_LVDS 3
#define DRM_MODE_ENCODER_TVDAC 4
+#define DRM_MODE_ENCODER_MIPI 5

struct drm_mode_get_encoder {
__u32 encoder_id;
@@ -155,6 +156,7 @@ struct drm_mode_get_encoder {
#define DRM_MODE_CONNECTOR_DisplayPort 10
#define DRM_MODE_CONNECTOR_HDMIA 11
#define DRM_MODE_CONNECTOR_HDMIB 12
+#define DRM_MODE_CONNECTOR_MIPI 13

struct drm_mode_get_connector {


\
 
 \ /
  Last update: 2009-05-28 20:19    [W:0.026 / U:0.480 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site