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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
|
/*
* arch/arm/mach-mx5/displays/hdmi_ad9389.h
*
* Copyright (C) 2010 by Digi International Inc.
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published by
* the Free Software Foundation.
*/
#ifndef __ASM_ARCH_MXC_CCWMX51_DISPLAYS_HDMI_AD9389_H__
#define __ASM_ARCH_MXC_CCWMX51_DISPLAYS_HDMI_AD9389_H__
static struct fb_videomode ad9389_1280x720x24 = {
.name = "1280x720",
.refresh = 60,
.xres = 1280,
.yres = 720,
.pixclock = 20100,
.left_margin = 32,
.right_margin = 48,
.upper_margin = 7,
.lower_margin = 3,
.hsync_len = 32,
.vsync_len = 6,
};
static struct fb_videomode ad9389_1360x768x24 = {
.name = "1360x768",
.refresh = 60,
.xres = 1360,
.yres = 768,
.pixclock = 16000,
.left_margin = 139,
.right_margin = 256,
.upper_margin = 3,
.lower_margin = 18,
.hsync_len = 76,
.vsync_len = 6,
};
static struct fb_videomode ad9389_1366x768x24 = {
.name = "1366x768",
.refresh = 60,
.xres = 1366,
.yres = 768,
.pixclock = 16000,
.left_margin = 139,
.right_margin = 256,
.upper_margin = 3,
.lower_margin = 18,
.hsync_len = 76,
.vsync_len = 6,
};
static struct fb_videomode ad9389_1920x1080x24 = {
.name = "1920x1080",
.refresh = 60,
.xres = 1920,
.yres = 1080,
.pixclock = 7560,
.left_margin = 148,
.right_margin = 88,
.upper_margin = 36,
.lower_margin = 4,
.hsync_len = 44,
.vsync_len = 5,
};
static struct fb_videomode ad9389_1024x768x24 = {
.name = "1024x768",
.refresh = 60,
.xres = 1024,
.yres = 768,
.pixclock = 15384, /* pico seconds of 65.0MHz */
.left_margin = 160,
.right_margin = 24,
.upper_margin = 29,
.lower_margin = 3,
.hsync_len = 136,
.vsync_len = 6,
};
static struct fb_videomode ad9389_custom_1 = {
.name = "custom1",
.refresh = 0,
.xres = 0,
.yres = 0,
.pixclock = 0,
.left_margin = 0,
.right_margin = 0,
.upper_margin = 0,
.lower_margin = 0,
.hsync_len = 0,
.vsync_len = 0,
.sync = 0,
};
static struct fb_videomode ad9389_custom_2 = {
.name = "custom2",
.refresh = 0,
.xres = 0,
.yres = 0,
.pixclock = 0,
.left_margin = 0,
.right_margin = 0,
.upper_margin = 0,
.lower_margin = 0,
.hsync_len = 0,
.vsync_len = 0,
.sync = 0,
};
struct ccwmx51_lcd_pdata ad9389_panel_list[] = {
{
.fb_pdata = {
.interface_pix_fmt = VIDEO_PIX_FMT,
.mode_str = "1280x720",
.mode = &ad9389_1280x720x24,
},
.bl_enable = NULL,
}, {
.fb_pdata = {
.interface_pix_fmt = VIDEO_PIX_FMT,
.mode_str = "1360x768",
.mode = &ad9389_1360x768x24,
},
.bl_enable = NULL,
}, {
.fb_pdata = {
.interface_pix_fmt = VIDEO_PIX_FMT,
.mode_str = "1366x768",
.mode = &ad9389_1366x768x24,
},
.bl_enable = NULL,
}, {
.fb_pdata = {
.interface_pix_fmt = VIDEO_PIX_FMT,
.mode_str = "1920x1080",
.mode = &ad9389_1920x1080x24,
},
.bl_enable = NULL,
}, {
.fb_pdata = {
.interface_pix_fmt = VIDEO_PIX_FMT,
.mode_str = "1024x768",
.mode = &ad9389_1024x768x24,
},
.bl_enable = NULL,
}, {
.fb_pdata = {
.interface_pix_fmt = VIDEO_PIX_FMT,
.mode_str = "custom1",
.mode = &ad9389_custom_1,
},
.bl_enable = NULL,
}, {
.fb_pdata = {
.interface_pix_fmt = VIDEO_PIX_FMT,
.mode_str = "custom2",
.mode = &ad9389_custom_2,
},
.bl_enable = NULL,
},
};
#endif /* __ASM_ARCH_MXC_CCWMX51_DISPLAYS_HDMI_AD9389_H__ */
|