1
2
3
4
5
6
7
8#ifndef __ASM_PLAT_FB_S3C2410_H
9#define __ASM_PLAT_FB_S3C2410_H __FILE__
10
11struct s3c2410fb_hw {
12 unsigned long lcdcon1;
13 unsigned long lcdcon2;
14 unsigned long lcdcon3;
15 unsigned long lcdcon4;
16 unsigned long lcdcon5;
17};
18
19
20struct s3c2410fb_display {
21
22 unsigned type;
23
24
25 unsigned short width;
26 unsigned short height;
27
28
29 unsigned short xres;
30 unsigned short yres;
31 unsigned short bpp;
32
33 unsigned pixclock;
34 unsigned short left_margin;
35 unsigned short right_margin;
36 unsigned short hsync_len;
37 unsigned short upper_margin;
38 unsigned short lower_margin;
39 unsigned short vsync_len;
40
41
42 unsigned long lcdcon5;
43};
44
45struct s3c2410fb_mach_info {
46
47 struct s3c2410fb_display *displays;
48 unsigned num_displays;
49 unsigned default_display;
50
51
52
53 unsigned long gpcup;
54 unsigned long gpcup_mask;
55 unsigned long gpccon;
56 unsigned long gpccon_mask;
57 unsigned long gpdup;
58 unsigned long gpdup_mask;
59 unsigned long gpdcon;
60 unsigned long gpdcon_mask;
61
62
63 unsigned long lpcsel;
64};
65
66extern void __init s3c24xx_fb_set_platdata(struct s3c2410fb_mach_info *);
67
68#endif
69