2 * Xylon logiCVC supported video modes
5 * e-mail: davor.joja@logicbricks.com
7 * 2012 (c) Xylon d.o.o.
9 * This file is licensed under the terms of the GNU General Public License
10 * version 2. This program is licensed "as is" without any warranty of any
11 * kind, whether express or implied.
15 * This file implements hw dependent functionality for controlling pixel clock generation.
20 #include "xylonfb-vmode.h"
23 struct xylonfb_vmode_params xylonfb_vmode
= {
24 #if ((VIDEO_MODE == VESA_640x480_8) || \
25 (VIDEO_MODE == VESA_640x480_16) || \
26 (VIDEO_MODE == VESA_640x480_32))
31 .pixclock
= KHZ2PICOS(25152),
38 .vmode
= FB_VMODE_NONINTERLACED
41 #endif /* #if (VIDEO_MODE == VESA_640x480_ ...) */
43 #if ((VIDEO_MODE == VESA_800x600_8) || \
44 (VIDEO_MODE == VESA_800x600_16) || \
45 (VIDEO_MODE == VESA_800x600_32))
50 .pixclock
= KHZ2PICOS(39790),
57 .vmode
= FB_VMODE_NONINTERLACED
60 #endif /* #if (VIDEO_MODE == VESA_800x600_ ...) */
62 #if ((VIDEO_MODE == VESA_1024x768_8) || \
63 (VIDEO_MODE == VESA_1024x768_16) || \
64 (VIDEO_MODE == VESA_1024x768_32))
69 .pixclock
= KHZ2PICOS(65076),
76 .vmode
= FB_VMODE_NONINTERLACED
79 #endif /* #if (VIDEO_MODE == VESA_1024x768_ ...) */
81 #if ((VIDEO_MODE == VESA_1280x720_8) || \
82 (VIDEO_MODE == VESA_1280x720_16) || \
83 (VIDEO_MODE == VESA_1280x720_32))
88 .pixclock
= KHZ2PICOS(74250),
95 .vmode
= FB_VMODE_NONINTERLACED
98 #endif /* #if (VIDEO_MODE == VESA_1280x720_ ...) */
100 #if ((VIDEO_MODE == VESA_1280x1024_8) || \
101 (VIDEO_MODE == VESA_1280x1024_16) || \
102 (VIDEO_MODE == VESA_1280x1024_32))
107 .pixclock
= KHZ2PICOS(107964),
114 .vmode
= FB_VMODE_NONINTERLACED
117 #endif /* #if (VIDEO_MODE == VESA_1280x1024_ ...) */
119 #if ((VIDEO_MODE == VESA_1680x1050_8) || \
120 (VIDEO_MODE == VESA_1680x1050_16) || \
121 (VIDEO_MODE == VESA_1680x1050_32))
126 .pixclock
= KHZ2PICOS(146361),
133 .vmode
= FB_VMODE_NONINTERLACED
136 #endif /* #if (VIDEO_MODE == VESA_1680x1050_ ...) */
138 #if ((VIDEO_MODE == VESA_1920x1080_8) || \
139 (VIDEO_MODE == VESA_1920x1080_16) || \
140 (VIDEO_MODE == VESA_1920x1080_32))
145 .pixclock
= KHZ2PICOS(148500),
152 .vmode
= FB_VMODE_NONINTERLACED
155 #endif /* #if (VIDEO_MODE == VESA_1920x1080_ ...) */