mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] drm: add connector and encoder types for MIPI displays
       [not found] <4060059527C3A74384B5C4ED9D30CB998833847C@rrsmsx506.amr.corp.intel.com>
@ 2009-05-28 18:16 ` Eaton, Thomas G
  2009-05-29  1:25   ` Daniel Stone
  0 siblings, 1 reply; 3+ messages in thread
From: Eaton, Thomas G @ 2009-05-28 18:16 UTC (permalink / raw)
  To: dri-devel, airlied; +Cc: linux-kernel

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 {


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm: add connector and encoder types for MIPI displays
  2009-05-28 18:16 ` [PATCH] drm: add connector and encoder types for MIPI displays Eaton, Thomas G
@ 2009-05-29  1:25   ` Daniel Stone
  2009-05-29 15:25     ` Eaton, Thomas G
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Stone @ 2009-05-29  1:25 UTC (permalink / raw)
  To: Eaton, Thomas G; +Cc: dri-devel, airlied, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 350 bytes --]

On Thu, May 28, 2009 at 12:16:23PM -0600, Eaton, Thomas G wrote:
> Added connector and encoder types for MIPI displays.
> 
> Signed-off-by: Thomas G Eaton <thomas.g.eaton@intel.com>

I wonder if this is all really necessary to present to userspace, or if
MIPI/LVDS/et al should just fall under 'internally-connected panel'?

Cheers,
Daniel

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH] drm: add connector and encoder types for MIPI displays
  2009-05-29  1:25   ` Daniel Stone
@ 2009-05-29 15:25     ` Eaton, Thomas G
  0 siblings, 0 replies; 3+ messages in thread
From: Eaton, Thomas G @ 2009-05-29 15:25 UTC (permalink / raw)
  To: Daniel Stone; +Cc: dri-devel, airlied, linux-kernel

Based on the descriptions of encoder and connector, MIPI has different hardware for both the encoder and the connector than LVDS.  If it is unnecessary to present encoder and connector type information to userspace, then I agree that it could be simplified.  However, with the current implementation, I think it would be misleading to refer to all internal panels as having the same encoder and connector types unless they did in fact share the same hardware encoders and connectors.  

Cheers,
-Gideon 

-----Original Message-----
From: Daniel Stone [mailto:daniel@fooishbar.org] 
Sent: Thursday, May 28, 2009 6:25 PM
To: Eaton, Thomas G
Cc: dri-devel@lists.sourceforge.net; airlied@linux.ie; linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drm: add connector and encoder types for MIPI displays

On Thu, May 28, 2009 at 12:16:23PM -0600, Eaton, Thomas G wrote:
> Added connector and encoder types for MIPI displays.
> 
> Signed-off-by: Thomas G Eaton <thomas.g.eaton@intel.com>

I wonder if this is all really necessary to present to userspace, or if
MIPI/LVDS/et al should just fall under 'internally-connected panel'?

Cheers,
Daniel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-05-29 15:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <4060059527C3A74384B5C4ED9D30CB998833847C@rrsmsx506.amr.corp.intel.com>
2009-05-28 18:16 ` [PATCH] drm: add connector and encoder types for MIPI displays Eaton, Thomas G
2009-05-29  1:25   ` Daniel Stone
2009-05-29 15:25     ` Eaton, Thomas G

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®