Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362935
b: refs/heads/master
c: 32ed6ef
h: refs/heads/master
i:
  362933: c2deb08
  362931: 79215a7
  362927: 954904c
v: v3
  • Loading branch information
Tomi Valkeinen committed Mar 12, 2013
1 parent 0174d0e commit 012ab0c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 06a3307975aac2d5b5a0e0f2e05d23e769f176b4
refs/heads/master: 32ed6ef133f95f960d19e3f3b30246aebf8ecd36
28 changes: 17 additions & 11 deletions trunk/include/video/display_timing.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,22 @@
#include <linux/bitops.h>
#include <linux/types.h>

#define DISPLAY_FLAGS_HSYNC_LOW BIT(0)
#define DISPLAY_FLAGS_HSYNC_HIGH BIT(1)
#define DISPLAY_FLAGS_VSYNC_LOW BIT(2)
#define DISPLAY_FLAGS_VSYNC_HIGH BIT(3)
#define DISPLAY_FLAGS_DE_LOW BIT(4) /* data enable flag */
#define DISPLAY_FLAGS_DE_HIGH BIT(5)
#define DISPLAY_FLAGS_PIXDATA_POSEDGE BIT(6) /* drive data on pos. edge */
#define DISPLAY_FLAGS_PIXDATA_NEGEDGE BIT(7) /* drive data on neg. edge */
#define DISPLAY_FLAGS_INTERLACED BIT(8)
#define DISPLAY_FLAGS_DOUBLESCAN BIT(9)
enum display_flags {
DISPLAY_FLAGS_HSYNC_LOW = BIT(0),
DISPLAY_FLAGS_HSYNC_HIGH = BIT(1),
DISPLAY_FLAGS_VSYNC_LOW = BIT(2),
DISPLAY_FLAGS_VSYNC_HIGH = BIT(3),

/* data enable flag */
DISPLAY_FLAGS_DE_LOW = BIT(4),
DISPLAY_FLAGS_DE_HIGH = BIT(5),
/* drive data on pos. edge */
DISPLAY_FLAGS_PIXDATA_POSEDGE = BIT(6),
/* drive data on neg. edge */
DISPLAY_FLAGS_PIXDATA_NEGEDGE = BIT(7),
DISPLAY_FLAGS_INTERLACED = BIT(8),
DISPLAY_FLAGS_DOUBLESCAN = BIT(9),
};

/*
* A single signal can be specified via a range of minimal and maximal values
Expand Down Expand Up @@ -69,7 +75,7 @@ struct display_timing {
struct timing_entry vback_porch; /* ver. back porch */
struct timing_entry vsync_len; /* ver. sync len */

unsigned int flags; /* display flags */
enum display_flags flags; /* display flags */
};

/*
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/video/videomode.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct videomode {
u32 vback_porch;
u32 vsync_len;

unsigned int flags; /* display flags */
enum display_flags flags; /* display flags */
};

/**
Expand Down

0 comments on commit 012ab0c

Please sign in to comment.