summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-03-13 15:56:26 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-03-29 07:57:47 +0100
commit386876588642e024101502051625044e4e6f4922 (patch)
tree0970d8bde1c73670e2d36816535e41e36458844d /include
parent25dcdd68fba532d60352feeae4d38e3ac8e35188 (diff)
downloadbarebox-386876588642e024101502051625044e4e6f4922.tar.gz
barebox-386876588642e024101502051625044e4e6f4922.tar.xz
video: Add display timing from devicetree helper
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/fb.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/fb.h b/include/fb.h
index 91d3fe415e..28e32fccdd 100644
--- a/include/fb.h
+++ b/include/fb.h
@@ -4,6 +4,7 @@
#include <ioctl.h>
#include <param.h>
#include <driver.h>
+#include <linux/bitops.h>
#define FB_VISUAL_TRUECOLOR 2 /* True color */
#define FB_VISUAL_PSEUDOCOLOR 3 /* Pseudo color (like atari) */
@@ -32,6 +33,16 @@
#define PICOS2KHZ(a) (1000000000UL/(a))
#define KHZ2PICOS(a) (1000000000UL/(a))
+enum display_flags {
+ /* 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),
+};
+
struct fb_videomode {
const char *name; /* optional */
u32 refresh; /* optional */
@@ -46,7 +57,7 @@ struct fb_videomode {
u32 vsync_len;
u32 sync;
u32 vmode;
- u32 flag;
+ u32 display_flags;
};
/* Interpretation of offset for color fields: All offsets are from the right,
@@ -125,6 +136,8 @@ struct fb_info {
*/
};
+struct display_timings *of_get_display_timings(struct device_node *np);
+
int register_framebuffer(struct fb_info *info);
#define FBIOGET_SCREENINFO _IOR('F', 1, loff_t)