diff options
| -rw-r--r-- | include/video/display_timing.h | 28 | ||||
| -rw-r--r-- | include/video/videomode.h | 2 |
2 files changed, 18 insertions, 12 deletions
diff --git a/include/video/display_timing.h b/include/video/display_timing.h index a8a4be5b0af7..b63471d14097 100644 --- a/include/video/display_timing.h +++ b/include/video/display_timing.h | |||
| @@ -12,16 +12,22 @@ | |||
| 12 | #include <linux/bitops.h> | 12 | #include <linux/bitops.h> |
| 13 | #include <linux/types.h> | 13 | #include <linux/types.h> |
| 14 | 14 | ||
| 15 | #define DISPLAY_FLAGS_HSYNC_LOW BIT(0) | 15 | enum display_flags { |
| 16 | #define DISPLAY_FLAGS_HSYNC_HIGH BIT(1) | 16 | DISPLAY_FLAGS_HSYNC_LOW = BIT(0), |
| 17 | #define DISPLAY_FLAGS_VSYNC_LOW BIT(2) | 17 | DISPLAY_FLAGS_HSYNC_HIGH = BIT(1), |
| 18 | #define DISPLAY_FLAGS_VSYNC_HIGH BIT(3) | 18 | DISPLAY_FLAGS_VSYNC_LOW = BIT(2), |
| 19 | #define DISPLAY_FLAGS_DE_LOW BIT(4) /* data enable flag */ | 19 | DISPLAY_FLAGS_VSYNC_HIGH = BIT(3), |
| 20 | #define DISPLAY_FLAGS_DE_HIGH BIT(5) | 20 | |
| 21 | #define DISPLAY_FLAGS_PIXDATA_POSEDGE BIT(6) /* drive data on pos. edge */ | 21 | /* data enable flag */ |
| 22 | #define DISPLAY_FLAGS_PIXDATA_NEGEDGE BIT(7) /* drive data on neg. edge */ | 22 | DISPLAY_FLAGS_DE_LOW = BIT(4), |
| 23 | #define DISPLAY_FLAGS_INTERLACED BIT(8) | 23 | DISPLAY_FLAGS_DE_HIGH = BIT(5), |
| 24 | #define DISPLAY_FLAGS_DOUBLESCAN BIT(9) | 24 | /* drive data on pos. edge */ |
| 25 | DISPLAY_FLAGS_PIXDATA_POSEDGE = BIT(6), | ||
| 26 | /* drive data on neg. edge */ | ||
| 27 | DISPLAY_FLAGS_PIXDATA_NEGEDGE = BIT(7), | ||
| 28 | DISPLAY_FLAGS_INTERLACED = BIT(8), | ||
| 29 | DISPLAY_FLAGS_DOUBLESCAN = BIT(9), | ||
| 30 | }; | ||
| 25 | 31 | ||
| 26 | /* | 32 | /* |
| 27 | * A single signal can be specified via a range of minimal and maximal values | 33 | * A single signal can be specified via a range of minimal and maximal values |
| @@ -69,7 +75,7 @@ struct display_timing { | |||
| 69 | struct timing_entry vback_porch; /* ver. back porch */ | 75 | struct timing_entry vback_porch; /* ver. back porch */ |
| 70 | struct timing_entry vsync_len; /* ver. sync len */ | 76 | struct timing_entry vsync_len; /* ver. sync len */ |
| 71 | 77 | ||
| 72 | unsigned int flags; /* display flags */ | 78 | enum display_flags flags; /* display flags */ |
| 73 | }; | 79 | }; |
| 74 | 80 | ||
| 75 | /* | 81 | /* |
diff --git a/include/video/videomode.h b/include/video/videomode.h index f4ae6edfeb08..8b12e60b6173 100644 --- a/include/video/videomode.h +++ b/include/video/videomode.h | |||
| @@ -29,7 +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 flags; /* display flags */ | 32 | enum display_flags flags; /* display flags */ |
| 33 | }; | 33 | }; |
| 34 | 34 | ||
| 35 | /** | 35 | /** |
