Arnaud Patard | 20fd576 | 2005-09-09 13:10:07 -0700 | [diff] [blame] | 1 | /* |
Uwe Zeisberger | f30c226 | 2006-10-03 23:01:26 +0200 | [diff] [blame] | 2 | * linux/drivers/video/s3c2410fb.h |
Ben Dooks | 6a0e4ec | 2008-05-23 13:04:56 -0700 | [diff] [blame] | 3 | * Copyright (c) 2004 Arnaud Patard |
| 4 | * |
| 5 | * S3C2410 LCD Framebuffer Driver |
Arnaud Patard | 20fd576 | 2005-09-09 13:10:07 -0700 | [diff] [blame] | 6 | * |
| 7 | * This file is subject to the terms and conditions of the GNU General Public |
| 8 | * License. See the file COPYING in the main directory of this archive for |
| 9 | * more details. |
| 10 | * |
Ben Dooks | 6a0e4ec | 2008-05-23 13:04:56 -0700 | [diff] [blame] | 11 | */ |
Arnaud Patard | 20fd576 | 2005-09-09 13:10:07 -0700 | [diff] [blame] | 12 | |
| 13 | #ifndef __S3C2410FB_H |
| 14 | #define __S3C2410FB_H |
| 15 | |
Ben Dooks | f62e770 | 2008-02-06 01:39:41 -0800 | [diff] [blame] | 16 | enum s3c_drv_type { |
| 17 | DRV_S3C2410, |
| 18 | DRV_S3C2412, |
| 19 | }; |
| 20 | |
Arnaud Patard | 20fd576 | 2005-09-09 13:10:07 -0700 | [diff] [blame] | 21 | struct s3c2410fb_info { |
Arnaud Patard | 20fd576 | 2005-09-09 13:10:07 -0700 | [diff] [blame] | 22 | struct device *dev; |
| 23 | struct clk *clk; |
| 24 | |
Ben Dooks | aff39a8 | 2007-07-31 00:37:37 -0700 | [diff] [blame] | 25 | struct resource *mem; |
| 26 | void __iomem *io; |
Ben Dooks | f62e770 | 2008-02-06 01:39:41 -0800 | [diff] [blame] | 27 | void __iomem *irq_base; |
Ben Dooks | aff39a8 | 2007-07-31 00:37:37 -0700 | [diff] [blame] | 28 | |
Ben Dooks | f62e770 | 2008-02-06 01:39:41 -0800 | [diff] [blame] | 29 | enum s3c_drv_type drv_type; |
Arnaud Patard | 20fd576 | 2005-09-09 13:10:07 -0700 | [diff] [blame] | 30 | struct s3c2410fb_hw regs; |
| 31 | |
Arnaud Patard | 20fd576 | 2005-09-09 13:10:07 -0700 | [diff] [blame] | 32 | unsigned int palette_ready; |
| 33 | |
| 34 | /* keep these registers in case we need to re-write palette */ |
| 35 | u32 palette_buffer[256]; |
| 36 | u32 pseudo_pal[16]; |
| 37 | }; |
| 38 | |
| 39 | #define PALETTE_BUFF_CLEAR (0x80000000) /* entry is clear/invalid */ |
| 40 | |
| 41 | int s3c2410fb_init(void); |
| 42 | |
| 43 | #endif |