1 
2 /*
3  * THIS FILE IS AUTOMATICALLY GENERATED BY fbmode.pl -- DO NOT EDIT
4  */
5 
6 static struct fb_videomode modedb[] = {
7     {
8 	/* 640x350 @ 85 Hz, 37.9 kHz hsync */
9 	"640x350@85", 85, 640, 350, 31746, 96, 32, 60, 32, 64, 3,
10 	FB_SYNC_HOR_HIGH_ACT, FB_VMODE_NONINTERLACED
11     },
12     {
13 	/* 640x400 @ 85 Hz, 37.9 kHz hsync */
14 	"640x400@85", 85, 640, 400, 31746, 96, 32, 41, 1, 64, 3,
15 	FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
16     },
17     {
18 	/* 720x400 @ 85 Hz, 37.9 kHz hsync */
19 	"720x400@85", 85, 720, 400, 28169, 108, 36, 42, 1, 72, 3,
20 	FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
21     },
22     {
23 	/* 640x480 @ 60 Hz, 31.5 kHz hsync */
24 	"640x480@60", 60, 640, 480, 39683, 48, 16, 33, 10, 96, 2,
25 	0, FB_VMODE_NONINTERLACED
26     },
27     {
28 	/* 640x480 @ 73 Hz, 37.9 kHz hsync */
29 	"640x480@73", 73, 640, 480, 31746, 128, 24, 29, 9, 40, 2,
30 	0, FB_VMODE_NONINTERLACED
31     },
32     {
33 	/* 640x480 @ 75 Hz, 37.5 kHz hsync */
34 	"640x480@75", 75, 640, 480, 31746, 120, 16, 16, 1, 64, 3,
35 	0, FB_VMODE_NONINTERLACED
36     },
37     {
38 	/* 640x480 @ 85 Hz, 43.3 kHz hsync */
39 	"640x480@85", 85, 640, 480, 27778, 80, 56, 25, 1, 56, 3,
40 	0, FB_VMODE_NONINTERLACED
41     },
42     {
43 	/* 800x600 @ 56 Hz, 35.2 kHz hsync */
44 	"800x600@56", 56, 800, 600, 27778, 128, 24, 22, 1, 72, 2,
45 	FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
46     },
47     {
48 	/* 800x600 @ 60 Hz, 37.9 kHz hsync */
49 	"800x600@60", 60, 800, 600, 25000, 88, 40, 23, 1, 128, 4,
50 	FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
51     },
52     {
53 	/* 800x600 @ 72 Hz, 48.1 kHz hsync */
54 	"800x600@72", 72, 800, 600, 20000, 64, 56, 23, 37, 120, 6,
55 	FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
56     },
57     {
58 	/* 800x600 @ 75 Hz, 46.9 kHz hsync */
59 	"800x600@75", 75, 800, 600, 20202, 160, 16, 21, 1, 80, 3,
60 	FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
61     },
62     {
63 	/* 800x600 @ 85 Hz, 53.7 kHz hsync */
64 	"800x600@85", 85, 800, 600, 17762, 152, 32, 27, 1, 64, 3,
65 	FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
66     },
67     {
68 	/* 1024x768 @ 60 Hz, 48.4 kHz hsync */
69 	"1024x768@60", 60, 1024, 768, 15385, 160, 24, 29, 3, 136, 6,
70 	0, FB_VMODE_NONINTERLACED
71     },
72     {
73 	/* 1024x768 @ 70 Hz, 56.5 kHz hsync */
74 	"1024x768@70", 70, 1024, 768, 13333, 144, 24, 29, 3, 136, 6,
75 	0, FB_VMODE_NONINTERLACED
76     },
77     {
78 	/* 1024x768 @ 75 Hz, 60.1 kHz hsync */
79 	"1024x768@75", 75, 1024, 768, 12690, 176, 16, 28, 1, 96, 3,
80 	FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
81     },
82     {
83 	/* 1024x768 @ 85 Hz, 68.7 kHz hsync */
84 	"1024x768@85", 85, 1024, 768, 10582, 208, 48, 36, 1, 96, 3,
85 	FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
86     },
87     {
88 	/* 1152x864 @ 75 Hz, 67.5 kHz hsync */
89 	"1152x864@75", 75, 1152, 864, 9259, 256, 64, 32, 1, 128, 3,
90 	FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
91     },
92     {
93 	/* 1280x960 @ 60 Hz, 60.0 kHz hsync */
94 	"1280x960@60", 60, 1280, 960, 9259, 312, 96, 36, 1, 112, 3,
95 	FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
96     },
97     {
98 	/* 1280x960 @ 85 Hz, 85.9 kHz hsync */
99 	"1280x960@85", 85, 1280, 960, 6734, 224, 64, 47, 1, 160, 3,
100 	FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
101     },
102     {
103 	/* 1280x1024 @ 60 Hz, 64.0 kHz hsync */
104 	"1280x1024@60", 60, 1280, 1024, 9259, 248, 48, 38, 1, 112, 3,
105 	FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
106     },
107     {
108 	/* 1280x1024 @ 75 Hz, 80.0 kHz hsync */
109 	"1280x1024@75", 75, 1280, 1024, 7407, 248, 16, 38, 1, 144, 3,
110 	FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
111     },
112     {
113 	/* 1280x1024 @ 85 Hz, 91.1 kHz hsync */
114 	"1280x1024@85", 85, 1280, 1024, 6349, 224, 64, 44, 1, 160, 3,
115 	FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
116     },
117     {
118 	/* 1600x1200 @ 60 Hz, 75.0 kHz hsync */
119 	"1600x1200@60", 60, 1600, 1200, 6173, 304, 64, 46, 1, 192, 3,
120 	FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
121     },
122     {
123 	/* 1600x1200 @ 65 Hz, 81.2 kHz hsync */
124 	"1600x1200@65", 65, 1600, 1200, 5698, 304, 64, 46, 1, 192, 3,
125 	FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
126     },
127     {
128 	/* 1600x1200 @ 70 Hz, 87.5 kHz hsync */
129 	"1600x1200@70", 70, 1600, 1200, 5291, 304, 64, 46, 1, 192, 3,
130 	FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
131     },
132     {
133 	/* 1600x1200 @ 75 Hz, 93.8 kHz hsync */
134 	"1600x1200@75", 75, 1600, 1200, 4938, 304, 64, 46, 1, 192, 3,
135 	FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
136     },
137     {
138 	/* 1600x1200 @ 85 Hz, 106.2 kHz hsync */
139 	"1600x1200@85", 85, 1600, 1200, 4357, 304, 64, 46, 1, 192, 3,
140 	FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
141     },
142     {
143 	/* 1792x1344 @ 60 Hz, 83.7 kHz hsync */
144 	"1792x1344@60", 60, 1792, 1344, 4883, 328, 128, 46, 1, 200, 3,
145 	FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
146     },
147     {
148 	/* 1792x1344 @ 75 Hz, 106.3 kHz hsync */
149 	"1792x1344@75", 75, 1792, 1344, 3831, 352, 96, 69, 1, 216, 3,
150 	FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
151     },
152     {
153 	/* 1856x1392 @ 60 Hz, 86.4 kHz hsync */
154 	"1856x1392@60", 60, 1856, 1392, 4581, 352, 96, 43, 1, 224, 3,
155 	FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
156     },
157     {
158 	/* 1856x1392 @ 75 Hz, 112.5 kHz hsync */
159 	"1856x1392@75", 75, 1856, 1392, 3472, 352, 128, 104, 1, 224, 3,
160 	FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
161     },
162     {
163 	/* 1920x1440 @ 60 Hz, 90.0 kHz hsync */
164 	"1920x1440@60", 60, 1920, 1440, 4274, 344, 128, 56, 1, 208, 3,
165 	FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
166     },
167     {
168 	/* 1920x1440 @ 75 Hz, 112.5 kHz hsync */
169 	"1920x1440@75", 75, 1920, 1440, 3367, 352, 144, 56, 1, 224, 3,
170 	FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
171     },
172     {
173 	/* 832x624 @ 75 Hz, 49.7 kHz hsync */
174 	"832x624@75", 75, 832, 624, 17457, 224, 32, 39, 1, 64, 3,
175 	0, FB_VMODE_NONINTERLACED
176     },
177     {
178 	/* 1152x768 @ 55 Hz, 44.2 kHz hsync */
179 	"1152x768@55", 55, 1152, 768, 15386, 158, 26, 29, 3, 136, 6,
180 	FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
181     },
182     {
183 	/* 1400x1050 @ 60 Hz, 64.9 kHz hsync */
184 	"1400x1050@60", 60, 1400, 1050, 8197, 240, 88, 18, 2, 152, 12,
185 	FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
186     },
187     {
188 	/* 1400x1050 @ 75 Hz, 81.5 kHz hsync */
189 	"1400x1050@75", 75, 1400, 1050, 6418, 128, 64, 26, 2, 320, 12,
190 	FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
191     },
192     {
193 	/* 1600x1024 @ 60 Hz, 64.0 kHz hsync */
194 	"1600x1024@60", 60, 1600, 1024, 9354, 30, 20, 37, 3, 20, 3,
195 	0, FB_VMODE_NONINTERLACED
196     },
197     {
198 	/* 1920x1440 @ 85 Hz, 128.5 kHz hsync */
199 	"1920x1440@85", 85, 1920, 1440, 2930, 368, 152, 68, 1, 216, 3,
200 	FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
201     },
202     {
203 	/* 2048x1536 @ 60 Hz, 95.3 kHz hsync */
204 	"2048x1536@60", 60, 2048, 1536, 3746, 376, 152, 49, 1, 224, 3,
205 	FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
206     },
207     {
208 	/* 2048x1536 @ 75 Hz, 120.2 kHz hsync */
209 	"2048x1536@75", 75, 2048, 1536, 2937, 392, 168, 63, 1, 224, 3,
210 	FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
211     },
212     {
213 	/* 2048x1536 @ 85 Hz, 137.0 kHz hsync */
214 	"2048x1536@85", 85, 2048, 1536, 2577, 392, 168, 72, 1, 224, 3,
215 	FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
216     }
217 };
218 
219 static int num_modes = sizeof(modedb) / sizeof(modedb[0]);
220 
221 #define DFLT_MODE 3
222 
223