aboutsummaryrefslogtreecommitdiffstats
path: root/include/video
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2013-03-12 04:26:45 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-03-12 09:46:52 -0400
commit06a3307975aac2d5b5a0e0f2e05d23e769f176b4 (patch)
treeb4cc6d14e14523c2380c254d6ac102ec9d4d9647 /include/video
parenta38884f681a4d044befd30d9f3d19a0821bae63a (diff)
videomode: combine videomode dmt_flags and data_flags
Both videomode and display_timing contain flags describing the modes. These are stored in dmt_flags and data_flags. There's no need to separate these flags, and having separate fields just makes the flags more difficult to use. This patch combines the fields and renames VESA_DMT_* flags to DISPLAY_FLAGS_*. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Diffstat (limited to 'include/video')
-rw-r--r--include/video/display_timing.h26
-rw-r--r--include/video/videomode.h3
2 files changed, 12 insertions, 17 deletions
diff --git a/include/video/display_timing.h b/include/video/display_timing.h
index 71e9a383a981..a8a4be5b0af7 100644
--- a/include/video/display_timing.h
+++ b/include/video/display_timing.h
@@ -12,19 +12,16 @@
12#include <linux/bitops.h> 12#include <linux/bitops.h>
13#include <linux/types.h> 13#include <linux/types.h>
14 14
15/* VESA display monitor timing parameters */ 15#define DISPLAY_FLAGS_HSYNC_LOW BIT(0)
16#define VESA_DMT_HSYNC_LOW BIT(0) 16#define DISPLAY_FLAGS_HSYNC_HIGH BIT(1)
17#define VESA_DMT_HSYNC_HIGH BIT(1) 17#define DISPLAY_FLAGS_VSYNC_LOW BIT(2)
18#define VESA_DMT_VSYNC_LOW BIT(2) 18#define DISPLAY_FLAGS_VSYNC_HIGH BIT(3)
19#define VESA_DMT_VSYNC_HIGH BIT(3) 19#define DISPLAY_FLAGS_DE_LOW BIT(4) /* data enable flag */
20 20#define DISPLAY_FLAGS_DE_HIGH BIT(5)
21/* display specific flags */ 21#define DISPLAY_FLAGS_PIXDATA_POSEDGE BIT(6) /* drive data on pos. edge */
22#define DISPLAY_FLAGS_DE_LOW BIT(0) /* data enable flag */ 22#define DISPLAY_FLAGS_PIXDATA_NEGEDGE BIT(7) /* drive data on neg. edge */
23#define DISPLAY_FLAGS_DE_HIGH BIT(1) 23#define DISPLAY_FLAGS_INTERLACED BIT(8)
24#define DISPLAY_FLAGS_PIXDATA_POSEDGE BIT(2) /* drive data on pos. edge */ 24#define DISPLAY_FLAGS_DOUBLESCAN BIT(9)
25#define DISPLAY_FLAGS_PIXDATA_NEGEDGE BIT(3) /* drive data on neg. edge */
26#define DISPLAY_FLAGS_INTERLACED BIT(4)
27#define DISPLAY_FLAGS_DOUBLESCAN BIT(5)
28 25
29/* 26/*
30 * A single signal can be specified via a range of minimal and maximal values 27 * A single signal can be specified via a range of minimal and maximal values
@@ -72,8 +69,7 @@ struct display_timing {
72 struct timing_entry vback_porch; /* ver. back porch */ 69 struct timing_entry vback_porch; /* ver. back porch */
73 struct timing_entry vsync_len; /* ver. sync len */ 70 struct timing_entry vsync_len; /* ver. sync len */
74 71
75 unsigned int dmt_flags; /* VESA DMT flags */ 72 unsigned int flags; /* display flags */
76 unsigned int data_flags; /* video data flags */
77}; 73};
78 74
79/* 75/*
diff --git a/include/video/videomode.h b/include/video/videomode.h
index a42156234dd4..f4ae6edfeb08 100644
--- a/include/video/videomode.h
+++ b/include/video/videomode.h
@@ -29,8 +29,7 @@ struct videomode {
29 u32 vback_porch; 29 u32 vback_porch;
30 u32 vsync_len; 30 u32 vsync_len;
31 31
32 unsigned int dmt_flags; /* VESA DMT flags */ 32 unsigned int flags; /* display flags */
33 unsigned int data_flags; /* video data flags */
34}; 33};
35 34
36/** 35/**