Blame view
drivers/video/s3c2410fb.h
935 Bytes
20fd57676
|
1 |
/* |
f30c22695
|
2 |
* linux/drivers/video/s3c2410fb.h |
6a0e4ec7b
|
3 4 5 |
* Copyright (c) 2004 Arnaud Patard * * S3C2410 LCD Framebuffer Driver |
20fd57676
|
6 7 8 9 10 |
* * This file is subject to the terms and conditions of the GNU General Public * License. See the file COPYING in the main directory of this archive for * more details. * |
6a0e4ec7b
|
11 |
*/ |
20fd57676
|
12 13 14 |
#ifndef __S3C2410FB_H #define __S3C2410FB_H |
f62e770b2
|
15 16 17 18 |
enum s3c_drv_type { DRV_S3C2410, DRV_S3C2412, }; |
20fd57676
|
19 |
struct s3c2410fb_info { |
20fd57676
|
20 21 |
struct device *dev; struct clk *clk; |
aff39a852
|
22 23 |
struct resource *mem; void __iomem *io; |
f62e770b2
|
24 |
void __iomem *irq_base; |
aff39a852
|
25 |
|
f62e770b2
|
26 |
enum s3c_drv_type drv_type; |
20fd57676
|
27 |
struct s3c2410fb_hw regs; |
0dac6ecdc
|
28 |
unsigned long clk_rate; |
20fd57676
|
29 |
unsigned int palette_ready; |
0dac6ecdc
|
30 31 32 |
#ifdef CONFIG_CPU_FREQ struct notifier_block freq_transition; #endif |
20fd57676
|
33 34 35 36 37 38 39 40 41 42 |
/* keep these registers in case we need to re-write palette */ u32 palette_buffer[256]; u32 pseudo_pal[16]; }; #define PALETTE_BUFF_CLEAR (0x80000000) /* entry is clear/invalid */ int s3c2410fb_init(void); #endif |