1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2004 Arnaud Patard <arnaud.patard@rtp-net.org>
8 #ifndef __ASM_PLAT_FB_S3C2410_H
9 #define __ASM_PLAT_FB_S3C2410_H __FILE__
12 unsigned long lcdcon1;
13 unsigned long lcdcon2;
14 unsigned long lcdcon3;
15 unsigned long lcdcon4;
16 unsigned long lcdcon5;
20 struct s3c2410fb_display {
26 unsigned short height;
33 unsigned pixclock; /* pixclock in picoseconds */
34 unsigned short left_margin; /* value in pixels (TFT) or HCLKs (STN) */
35 unsigned short right_margin; /* value in pixels (TFT) or HCLKs (STN) */
36 unsigned short hsync_len; /* value in pixels (TFT) or HCLKs (STN) */
37 unsigned short upper_margin; /* value in lines (TFT) or 0 (STN) */
38 unsigned short lower_margin; /* value in lines (TFT) or 0 (STN) */
39 unsigned short vsync_len; /* value in lines (TFT) or 0 (STN) */
41 /* lcd configuration registers */
42 unsigned long lcdcon5;
45 struct s3c2410fb_mach_info {
47 struct s3c2410fb_display *displays; /* attached displays info */
48 unsigned num_displays; /* number of defined displays */
49 unsigned default_display;
54 unsigned long gpcup_mask;
56 unsigned long gpccon_mask;
58 unsigned long gpdup_mask;
60 unsigned long gpdcon_mask;
62 /* lpc3600 control register */
66 extern void __init s3c24xx_fb_set_platdata(struct s3c2410fb_mach_info *);
68 #endif /* __ASM_PLAT_FB_S3C2410_H */