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>
This commit is contained in:
parent
37715f556a
commit
8f5ee77bb8
3 changed files with 135 additions and 33 deletions
|
|
@ -727,6 +727,8 @@ extern int fb_videomode_from_videomode(const struct videomode *vm,
|
|||
|
||||
/* drivers/video/modedb.c */
|
||||
#define VESA_MODEDB_SIZE 43
|
||||
#define DMT_SIZE 0x50
|
||||
|
||||
extern void fb_var_to_videomode(struct fb_videomode *mode,
|
||||
const struct fb_var_screeninfo *var);
|
||||
extern void fb_videomode_to_var(struct fb_var_screeninfo *var,
|
||||
|
|
@ -777,9 +779,17 @@ struct fb_videomode {
|
|||
u32 flag;
|
||||
};
|
||||
|
||||
struct dmt_videomode {
|
||||
u32 dmt_id;
|
||||
u32 std_2byte_code;
|
||||
u32 cvt_3byte_code;
|
||||
const struct fb_videomode *mode;
|
||||
};
|
||||
|
||||
extern const char *fb_mode_option;
|
||||
extern const struct fb_videomode vesa_modes[];
|
||||
extern const struct fb_videomode cea_modes[64];
|
||||
extern const struct dmt_videomode dmt_modes[];
|
||||
|
||||
struct fb_modelist {
|
||||
struct list_head list;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue