1 /* arch/arm/mach-s3c2410/include/mach/fb.h
3 * Copyright (c) 2004 Arnaud Patard <arnaud.patard@rtp-net.org>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
12 #ifndef __ASM_ARM_FB_H
13 #define __ASM_ARM_FB_H
15 #include <mach/regs-lcd.h>
18 unsigned long lcdcon1;
19 unsigned long lcdcon2;
20 unsigned long lcdcon3;
21 unsigned long lcdcon4;
22 unsigned long lcdcon5;
26 struct s3c2410fb_display {
32 unsigned short height;
39 unsigned pixclock; /* pixclock in picoseconds */
40 unsigned short left_margin; /* value in pixels (TFT) or HCLKs (STN) */
41 unsigned short right_margin; /* value in pixels (TFT) or HCLKs (STN) */
42 unsigned short hsync_len; /* value in pixels (TFT) or HCLKs (STN) */
43 unsigned short upper_margin; /* value in lines (TFT) or 0 (STN) */
44 unsigned short lower_margin; /* value in lines (TFT) or 0 (STN) */
45 unsigned short vsync_len; /* value in lines (TFT) or 0 (STN) */
47 /* lcd configuration registers */
48 unsigned long lcdcon5;
51 struct s3c2410fb_mach_info {
53 struct s3c2410fb_display *displays; /* attached diplays info */
54 unsigned num_displays; /* number of defined displays */
55 unsigned default_display;
60 unsigned long gpcup_mask;
62 unsigned long gpccon_mask;
64 unsigned long gpdup_mask;
66 unsigned long gpdcon_mask;
68 /* lpc3600 control register */
72 extern void __init s3c24xx_fb_set_platdata(struct s3c2410fb_mach_info *);
74 #endif /* __ASM_ARM_FB_H */