linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] video: display_timing: add doubleclk flag
@ 2013-05-27 12:33 Lucas Stach
  2013-05-27 12:33 ` [PATCH 2/3] video: of: " Lucas Stach
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Lucas Stach @ 2013-05-27 12:33 UTC (permalink / raw)
  To: dri-devel; +Cc: Dave Airlie, linux-fbdev, kernel, Florian Tobias Schandinat

From: Steffen Trumtrar <s.trumtrar@pengutronix.de>

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
---
 include/video/display_timing.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/include/video/display_timing.h b/include/video/display_timing.h
index 5d0259b..28d9d0d 100644
--- a/include/video/display_timing.h
+++ b/include/video/display_timing.h
@@ -27,6 +27,7 @@ enum display_flags {
 	DISPLAY_FLAGS_PIXDATA_NEGEDGE	= BIT(7),
 	DISPLAY_FLAGS_INTERLACED	= BIT(8),
 	DISPLAY_FLAGS_DOUBLESCAN	= BIT(9),
+	DISPLAY_FLAGS_DOUBLECLK		= BIT(10),
 };
 
 /*
-- 
1.7.10.4


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

* [PATCH 2/3] video: of: display_timing: add doubleclk flag
  2013-05-27 12:33 [PATCH 1/3] video: display_timing: add doubleclk flag Lucas Stach
@ 2013-05-27 12:33 ` Lucas Stach
  2013-05-27 12:33 ` [PATCH 3/3] drm_modes: videomode: " Lucas Stach
  2013-05-27 14:43 ` [PATCH 1/3] video: display_timing: " Jean-Christophe PLAGNIOL-VILLARD
  2 siblings, 0 replies; 4+ messages in thread
From: Lucas Stach @ 2013-05-27 12:33 UTC (permalink / raw)
  To: dri-devel; +Cc: Dave Airlie, linux-fbdev, kernel, Florian Tobias Schandinat

From: Steffen Trumtrar <s.trumtrar@pengutronix.de>

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
---
 Documentation/devicetree/bindings/video/display-timing.txt |    1 +
 drivers/video/of_display_timing.c                          |    2 ++
 2 files changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/video/display-timing.txt b/Documentation/devicetree/bindings/video/display-timing.txt
index 1500385..e1d4a0b 100644
--- a/Documentation/devicetree/bindings/video/display-timing.txt
+++ b/Documentation/devicetree/bindings/video/display-timing.txt
@@ -34,6 +34,7 @@ optional properties:
 			- ignored     = ignored
  - interlaced (bool): boolean to enable interlaced mode
  - doublescan (bool): boolean to enable doublescan mode
+ - doubleclk (bool): boolean to enable doubleclock mode
 
 All the optional properties that are not bool follow the following logic:
     <1>: high active
diff --git a/drivers/video/of_display_timing.c b/drivers/video/of_display_timing.c
index 85c1a41..2894e03 100644
--- a/drivers/video/of_display_timing.c
+++ b/drivers/video/of_display_timing.c
@@ -98,6 +98,8 @@ static struct display_timing *of_get_display_timing(const struct device_node
 		dt->flags |= DISPLAY_FLAGS_INTERLACED;
 	if (of_property_read_bool(np, "doublescan"))
 		dt->flags |= DISPLAY_FLAGS_DOUBLESCAN;
+	if (of_property_read_bool(np, "doubleclk"))
+		dt->flags |= DISPLAY_FLAGS_DOUBLECLK;
 
 	if (ret) {
 		pr_err("%s: error reading timing properties\n",
-- 
1.7.10.4


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

* [PATCH 3/3] drm_modes: videomode: add doubleclk flag
  2013-05-27 12:33 [PATCH 1/3] video: display_timing: add doubleclk flag Lucas Stach
  2013-05-27 12:33 ` [PATCH 2/3] video: of: " Lucas Stach
@ 2013-05-27 12:33 ` Lucas Stach
  2013-05-27 14:43 ` [PATCH 1/3] video: display_timing: " Jean-Christophe PLAGNIOL-VILLARD
  2 siblings, 0 replies; 4+ messages in thread
From: Lucas Stach @ 2013-05-27 12:33 UTC (permalink / raw)
  To: dri-devel; +Cc: Dave Airlie, linux-fbdev, kernel, Florian Tobias Schandinat

From: Steffen Trumtrar <s.trumtrar@pengutronix.de>

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
---
 drivers/gpu/drm/drm_modes.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c
index faa79df..875031d 100644
--- a/drivers/gpu/drm/drm_modes.c
+++ b/drivers/gpu/drm/drm_modes.c
@@ -535,6 +535,8 @@ int drm_display_mode_from_videomode(const struct videomode *vm,
 		dmode->flags |= DRM_MODE_FLAG_INTERLACE;
 	if (vm->flags & DISPLAY_FLAGS_DOUBLESCAN)
 		dmode->flags |= DRM_MODE_FLAG_DBLSCAN;
+	if (vm->flags & DISPLAY_FLAGS_DOUBLECLK)
+		dmode->flags |= DRM_MODE_FLAG_DBLCLK;
 	drm_mode_set_name(dmode);
 
 	return 0;
-- 
1.7.10.4


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

* Re: [PATCH 1/3] video: display_timing: add doubleclk flag
  2013-05-27 12:33 [PATCH 1/3] video: display_timing: add doubleclk flag Lucas Stach
  2013-05-27 12:33 ` [PATCH 2/3] video: of: " Lucas Stach
  2013-05-27 12:33 ` [PATCH 3/3] drm_modes: videomode: " Lucas Stach
@ 2013-05-27 14:43 ` Jean-Christophe PLAGNIOL-VILLARD
  2 siblings, 0 replies; 4+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2013-05-27 14:43 UTC (permalink / raw)
  To: Lucas Stach
  Cc: Dave Airlie, linux-fbdev, kernel, dri-devel,
	Florian Tobias Schandinat

On 14:33 Mon 27 May     , Lucas Stach wrote:
> From: Steffen Trumtrar <s.trumtrar@pengutronix.de>
> 
> Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>

If you want to take it via dri I'm fine otherwise via fbdev

Best Regards,
J.
> ---
>  include/video/display_timing.h |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/video/display_timing.h b/include/video/display_timing.h
> index 5d0259b..28d9d0d 100644
> --- a/include/video/display_timing.h
> +++ b/include/video/display_timing.h
> @@ -27,6 +27,7 @@ enum display_flags {
>  	DISPLAY_FLAGS_PIXDATA_NEGEDGE	= BIT(7),
>  	DISPLAY_FLAGS_INTERLACED	= BIT(8),
>  	DISPLAY_FLAGS_DOUBLESCAN	= BIT(9),
> +	DISPLAY_FLAGS_DOUBLECLK		= BIT(10),
>  };
>  
>  /*
> -- 
> 1.7.10.4
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2013-05-27 14:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-27 12:33 [PATCH 1/3] video: display_timing: add doubleclk flag Lucas Stach
2013-05-27 12:33 ` [PATCH 2/3] video: of: " Lucas Stach
2013-05-27 12:33 ` [PATCH 3/3] drm_modes: videomode: " Lucas Stach
2013-05-27 14:43 ` [PATCH 1/3] video: display_timing: " Jean-Christophe PLAGNIOL-VILLARD

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).