linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] imx-drm: parallel-display: honor 'native-mode' property when selecting video mode from DT
@ 2014-01-13 10:24 Lothar Waßmann
  2014-01-13 11:43 ` Marek Vasut
  0 siblings, 1 reply; 2+ messages in thread
From: Lothar Waßmann @ 2014-01-13 10:24 UTC (permalink / raw)
  To: linux-arm-kernel

This patch allows to select a specific video mode from a list of modes
defined in DT by setting the 'native-mode' property appropriately.

Since all current users of this driver have only one mode defined in
their .dts files, the patch does not change the behaviour of this
driver on the affected platforms.

Signed-off-by: Lothar Wa?mann <LW@KARO-electronics.de>
---
 drivers/staging/imx-drm/parallel-display.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/imx-drm/parallel-display.c b/drivers/staging/imx-drm/parallel-display.c
index 24aa9be..351d61d 100644
--- a/drivers/staging/imx-drm/parallel-display.c
+++ b/drivers/staging/imx-drm/parallel-display.c
@@ -23,6 +23,7 @@
 #include <drm/drm_fb_helper.h>
 #include <drm/drm_crtc_helper.h>
 #include <linux/videodev2.h>
+#include <video/of_display_timing.h>
 
 #include "imx-drm.h"
 
@@ -74,7 +75,7 @@ static int imx_pd_connector_get_modes(struct drm_connector *connector)
 
 	if (np) {
 		struct drm_display_mode *mode = drm_mode_create(connector->dev);
-		of_get_drm_display_mode(np, &imxpd->mode, 0);
+		of_get_drm_display_mode(np, &imxpd->mode, OF_USE_NATIVE_MODE);
 		drm_mode_copy(mode, &imxpd->mode);
 		mode->type |= DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED,
 		drm_mode_probed_add(connector, mode);
-- 
1.7.2.5

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

* [PATCH] imx-drm: parallel-display: honor 'native-mode' property when selecting video mode from DT
  2014-01-13 10:24 [PATCH] imx-drm: parallel-display: honor 'native-mode' property when selecting video mode from DT Lothar Waßmann
@ 2014-01-13 11:43 ` Marek Vasut
  0 siblings, 0 replies; 2+ messages in thread
From: Marek Vasut @ 2014-01-13 11:43 UTC (permalink / raw)
  To: linux-arm-kernel

On Monday, January 13, 2014 at 11:24:33 AM, Lothar Wa?mann wrote:
> This patch allows to select a specific video mode from a list of modes
> defined in DT by setting the 'native-mode' property appropriately.
> 
> Since all current users of this driver have only one mode defined in
> their .dts files, the patch does not change the behaviour of this
> driver on the affected platforms.
> 
> Signed-off-by: Lothar Wa?mann <LW@KARO-electronics.de>

Looks OK to me, thanks.

Reviewed-by: Marek Vasut <marex@denx.de>

Best regards,
Marek Vasut

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

end of thread, other threads:[~2014-01-13 11:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-13 10:24 [PATCH] imx-drm: parallel-display: honor 'native-mode' property when selecting video mode from DT Lothar Waßmann
2014-01-13 11:43 ` Marek Vasut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).