1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
/*
* Copyright 2007 Freescale Semiconductor, Inc. All Rights Reserved.
*/
/*
* The code contained herein is licensed under the GNU General Public
* License. You may obtain a copy of the GNU General Public License
* Version 2 or later at the following locations:
*
* http://www.opensource.org/licenses/gpl-license.html
* http://www.gnu.org/copyleft/gpl.html
*/
#include <linux/kernel.h>
#include <asm/arch/mxcfb.h>
struct fb_videomode mxcfb_modedb[] = {
{
/* 240x320 @ 60 Hz */
"Sharp-QVGA", 60, 240, 320, 185925, 9, 16, 7, 9, 1, 1,
FB_SYNC_HOR_HIGH_ACT | FB_SYNC_SHARP_MODE |
FB_SYNC_CLK_INVERT | FB_SYNC_DATA_INVERT | FB_SYNC_CLK_IDLE_EN,
FB_VMODE_NONINTERLACED,
0,},
{
/* 240x33 @ 60 Hz */
"Sharp-CLI", 60, 240, 33, 185925, 9, 16, 7, 9 + 287, 1, 1,
FB_SYNC_HOR_HIGH_ACT | FB_SYNC_SHARP_MODE |
FB_SYNC_CLK_INVERT | FB_SYNC_DATA_INVERT | FB_SYNC_CLK_IDLE_EN,
FB_VMODE_NONINTERLACED,
0,},
{
/* 640x480 @ 60 Hz */
"NEC-VGA", 60, 640, 480, 38255, 144, 0, 34, 40, 1, 1,
FB_SYNC_VERT_HIGH_ACT | FB_SYNC_OE_ACT_HIGH,
FB_VMODE_NONINTERLACED,
0,},
{
/* NTSC TV output */
"TV-NTSC", 60, 640, 480, 37538,
38, 858 - 640 - 38 - 3,
36, 518 - 480 - 36 - 1,
3, 1,
0,
FB_VMODE_NONINTERLACED,
0,},
{
/* PAL TV output */
"TV-PAL", 50, 640, 480, 37538,
38, 960 - 640 - 38 - 32,
32, 555 - 480 - 32 - 3,
32, 3,
0,
FB_VMODE_NONINTERLACED,
0,},
{
/* TV output VGA mode, 640x480 @ 65 Hz */
"TV-VGA", 60, 640, 480, 40574, 35, 45, 9, 1, 46, 5,
0, FB_VMODE_NONINTERLACED, 0,
},
{
/* 640x480 @ 60 Hz */
"Sharp-VGA",
60, 640, 480, // 60 Hz, 640x480
35285, // 35.285 ns clock period
134, 34, // left & right margin
30, 10, // upper & lower margin
21, 5, // hsync & vsync len
0
| FB_SYNC_FLM_ACT_LOW
| FB_SYNC_LP_ACT_LOW
| FB_SYNC_CLK_POS_EDGE
,
FB_VMODE_NONINTERLACED,
0,
},
{
/* 800x600 @ 60 Hz */
"Sharp-SVGA",
60, 800, 600, // 60 Hz, 640x480
25000, // 25.000 ns clock period
104, 104, // left & right margin
28, 95, // upper & lower margin
8, 4, // hsync & vsync len
0
| FB_SYNC_OE_ACT_HIGH
,
FB_VMODE_NONINTERLACED,
0,
},
};
int mxcfb_modedb_sz = ARRAY_SIZE(mxcfb_modedb);
EXPORT_SYMBOL(mxcfb_modedb);
EXPORT_SYMBOL(mxcfb_modedb_sz);
|