Uwe Zeisberger | f30c226 | 2006-10-03 23:01:26 +0200 | [diff] [blame] | 1 | /* linux/include/asm-arm/arch-s3c2410/fb.h |
Arnaud Patard | 20fd576 | 2005-09-09 13:10:07 -0700 | [diff] [blame] | 2 | * |
| 3 | * Copyright (c) 2004 Arnaud Patard <arnaud.patard@rtp-net.org> |
| 4 | * |
| 5 | * Inspired by pxafb.h |
| 6 | * |
| 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. |
Arnaud Patard | 20fd576 | 2005-09-09 13:10:07 -0700 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | #ifndef __ASM_ARM_FB_H |
| 13 | #define __ASM_ARM_FB_H |
| 14 | |
| 15 | #include <asm/arch/regs-lcd.h> |
| 16 | |
| 17 | struct s3c2410fb_val { |
| 18 | unsigned int defval; |
| 19 | unsigned int min; |
| 20 | unsigned int max; |
| 21 | }; |
| 22 | |
| 23 | struct s3c2410fb_hw { |
| 24 | unsigned long lcdcon1; |
| 25 | unsigned long lcdcon2; |
| 26 | unsigned long lcdcon3; |
| 27 | unsigned long lcdcon4; |
| 28 | unsigned long lcdcon5; |
| 29 | }; |
| 30 | |
| 31 | struct s3c2410fb_mach_info { |
| 32 | unsigned char fixed_syncs; /* do not update sync/border */ |
| 33 | |
Arnaud Patard (Rtp | 357b819 | 2006-12-08 02:40:23 -0800 | [diff] [blame] | 34 | /* LCD types */ |
| 35 | int type; |
| 36 | |
Arnaud Patard | 20fd576 | 2005-09-09 13:10:07 -0700 | [diff] [blame] | 37 | /* Screen size */ |
| 38 | int width; |
| 39 | int height; |
| 40 | |
| 41 | /* Screen info */ |
| 42 | struct s3c2410fb_val xres; |
| 43 | struct s3c2410fb_val yres; |
| 44 | struct s3c2410fb_val bpp; |
| 45 | |
| 46 | /* lcd configuration registers */ |
| 47 | struct s3c2410fb_hw regs; |
| 48 | |
| 49 | /* GPIOs */ |
| 50 | |
| 51 | unsigned long gpcup; |
| 52 | unsigned long gpcup_mask; |
| 53 | unsigned long gpccon; |
| 54 | unsigned long gpccon_mask; |
| 55 | unsigned long gpdup; |
| 56 | unsigned long gpdup_mask; |
| 57 | unsigned long gpdcon; |
| 58 | unsigned long gpdcon_mask; |
| 59 | |
| 60 | /* lpc3600 control register */ |
| 61 | unsigned long lpcsel; |
| 62 | }; |
| 63 | |
Ben Dooks | 893b030 | 2005-10-28 15:31:45 +0100 | [diff] [blame] | 64 | extern void __init s3c24xx_fb_set_platdata(struct s3c2410fb_mach_info *); |
Arnaud Patard | 20fd576 | 2005-09-09 13:10:07 -0700 | [diff] [blame] | 65 | |
| 66 | #endif /* __ASM_ARM_FB_H */ |