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 |
Arnaud Patard | 20fd576 | 2005-09-09 13:10:07 -0700 | [diff] [blame] | 3 | * Copyright (c) Arnaud Patard |
| 4 | * |
| 5 | * This file is subject to the terms and conditions of the GNU General Public |
| 6 | * License. See the file COPYING in the main directory of this archive for |
| 7 | * more details. |
| 8 | * |
| 9 | * S3C2410 LCD Controller Frame Buffer Driver |
| 10 | * based on skeletonfb.c, sa1100fb.h |
| 11 | * |
| 12 | * ChangeLog |
| 13 | * |
| 14 | * 2004-12-04: Arnaud Patard <arnaud.patard@rtp-net.org> |
| 15 | * - Moved dprintk to s3c2410fb.c |
| 16 | * |
| 17 | * 2004-09-07: Arnaud Patard <arnaud.patard@rtp-net.org> |
| 18 | * - Renamed from h1940fb.h to s3c2410fb.h |
Krzysztof Helt | 9fa7bc0 | 2007-10-16 01:29:05 -0700 | [diff] [blame] | 19 | * - Changed h1940 to s3c2410 |
Arnaud Patard | 20fd576 | 2005-09-09 13:10:07 -0700 | [diff] [blame] | 20 | * |
| 21 | * 2004-07-15: Arnaud Patard <arnaud.patard@rtp-net.org> |
| 22 | * - First version |
| 23 | */ |
| 24 | |
| 25 | #ifndef __S3C2410FB_H |
| 26 | #define __S3C2410FB_H |
| 27 | |
Ben Dooks | f62e770 | 2008-02-06 01:39:41 -0800 | [diff] [blame] | 28 | enum s3c_drv_type { |
| 29 | DRV_S3C2410, |
| 30 | DRV_S3C2412, |
| 31 | }; |
| 32 | |
Arnaud Patard | 20fd576 | 2005-09-09 13:10:07 -0700 | [diff] [blame] | 33 | struct s3c2410fb_info { |
Arnaud Patard | 20fd576 | 2005-09-09 13:10:07 -0700 | [diff] [blame] | 34 | struct device *dev; |
| 35 | struct clk *clk; |
| 36 | |
Ben Dooks | aff39a8 | 2007-07-31 00:37:37 -0700 | [diff] [blame] | 37 | struct resource *mem; |
| 38 | void __iomem *io; |
Ben Dooks | f62e770 | 2008-02-06 01:39:41 -0800 | [diff] [blame] | 39 | void __iomem *irq_base; |
Ben Dooks | aff39a8 | 2007-07-31 00:37:37 -0700 | [diff] [blame] | 40 | |
Ben Dooks | f62e770 | 2008-02-06 01:39:41 -0800 | [diff] [blame] | 41 | enum s3c_drv_type drv_type; |
Arnaud Patard | 20fd576 | 2005-09-09 13:10:07 -0700 | [diff] [blame] | 42 | struct s3c2410fb_hw regs; |
| 43 | |
Arnaud Patard | 20fd576 | 2005-09-09 13:10:07 -0700 | [diff] [blame] | 44 | unsigned int palette_ready; |
| 45 | |
| 46 | /* keep these registers in case we need to re-write palette */ |
| 47 | u32 palette_buffer[256]; |
| 48 | u32 pseudo_pal[16]; |
| 49 | }; |
| 50 | |
| 51 | #define PALETTE_BUFF_CLEAR (0x80000000) /* entry is clear/invalid */ |
| 52 | |
| 53 | int s3c2410fb_init(void); |
| 54 | |
| 55 | #endif |