2 * Copyright 2012 Steffen Trumtrar <s.trumtrar@pengutronix.de>
4 * generic videomode description
6 * This file is released under the GPLv2
9 #ifndef __LINUX_VIDEOMODE_H
10 #define __LINUX_VIDEOMODE_H
12 #include <linux/types.h>
13 #include <video/display_timing.h>
16 * Subsystem independent description of a videomode.
17 * Can be generated from struct display_timing.
20 unsigned long pixelclock; /* pixelclock in Hz */
32 unsigned int dmt_flags; /* VESA DMT flags */
33 unsigned int data_flags; /* video data flags */
37 * videomode_from_timing - convert display timing to videomode
38 * @disp: structure with all possible timing entries
40 * @index: index into the list of display timings in devicetree
43 * This function converts a struct display_timing to a struct videomode.
45 int videomode_from_timing(const struct display_timings *disp,
46 struct videomode *vm, unsigned int index);