aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fb.h
diff options
context:
space:
mode:
authorDavid Ung <davidu@nvidia.com>2015-01-13 22:04:26 -0500
committerTomi Valkeinen <tomi.valkeinen@ti.com>2015-01-15 06:33:41 -0500
commit8f5ee77bb8d162abe28ff8cd56f36e825d143207 (patch)
tree66fcb26ae07140276092aae132d1fb2a996df1c6 /include/linux/fb.h
parent37715f556a0776356300391f8ac41ace91bea447 (diff)
video: fbdev: Check Standard Timing against DMT
Add the VESA Display Monitor Timing (DMT) table. During parsing of Standard Timings, it compare the 2 byte STD code with DMT to see what the VESA mode should be. If there is no entry in the vesa_modes table or no match found, it fallsback to the GTF timings. Signed-off-by: David Ung <davidu@nvidia.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'include/linux/fb.h')
-rw-r--r--include/linux/fb.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/fb.h b/include/linux/fb.h
index 882dbd1a87b7..043f3283b71c 100644
--- a/include/linux/fb.h
+++ b/include/linux/fb.h
@@ -727,6 +727,8 @@ extern int fb_videomode_from_videomode(const struct videomode *vm,
727 727
728/* drivers/video/modedb.c */ 728/* drivers/video/modedb.c */
729#define VESA_MODEDB_SIZE 43 729#define VESA_MODEDB_SIZE 43
730#define DMT_SIZE 0x50
731
730extern void fb_var_to_videomode(struct fb_videomode *mode, 732extern void fb_var_to_videomode(struct fb_videomode *mode,
731 const struct fb_var_screeninfo *var); 733 const struct fb_var_screeninfo *var);
732extern void fb_videomode_to_var(struct fb_var_screeninfo *var, 734extern void fb_videomode_to_var(struct fb_var_screeninfo *var,
@@ -777,9 +779,17 @@ struct fb_videomode {
777 u32 flag; 779 u32 flag;
778}; 780};
779 781
782struct dmt_videomode {
783 u32 dmt_id;
784 u32 std_2byte_code;
785 u32 cvt_3byte_code;
786 const struct fb_videomode *mode;
787};
788
780extern const char *fb_mode_option; 789extern const char *fb_mode_option;
781extern const struct fb_videomode vesa_modes[]; 790extern const struct fb_videomode vesa_modes[];
782extern const struct fb_videomode cea_modes[64]; 791extern const struct fb_videomode cea_modes[64];
792extern const struct dmt_videomode dmt_modes[];
783 793
784struct fb_modelist { 794struct fb_modelist {
785 struct list_head list; 795 struct list_head list;