summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Trumtrar <s.trumtrar@pengutronix.de>2012-12-17 14:33:19 +0100
committerSteffen Trumtrar <s.trumtrar@pengutronix.de>2013-01-24 09:04:21 +0100
commite1f1a8757b57fe816db164a10ea36c13466601fe (patch)
tree736ce4acc6349539c1505c5332f80b4f36b9f086
parentce2a396d83863a49abff491842a6ff88767879f5 (diff)
downloadlinux-e1f1a8757b57fe816db164a10ea36c13466601fe.tar.gz
linux-e1f1a8757b57fe816db164a10ea36c13466601fe.tar.xz
video: of: display_timing: add doubleclk flag
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
-rw-r--r--Documentation/devicetree/bindings/video/display-timing.txt1
-rw-r--r--drivers/video/of_display_timing.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/video/display-timing.txt b/Documentation/devicetree/bindings/video/display-timing.txt
index 150038552bc..e1d4a0b5961 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 a6e167d044c..b4601848113 100644
--- a/drivers/video/of_display_timing.c
+++ b/drivers/video/of_display_timing.c
@@ -99,6 +99,8 @@ static struct display_timing *of_get_display_timing(const struct device_node
dt->data_flags |= DISPLAY_FLAGS_INTERLACED;
if (of_property_read_bool(np, "doublescan"))
dt->data_flags |= DISPLAY_FLAGS_DOUBLESCAN;
+ if (of_property_read_bool(np, "doubleclk"))
+ dt->data_flags |= DISPLAY_FLAGS_DOUBLECLK;
if (ret) {
pr_err("%s: error reading timing properties\n",