Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * linux/drivers/video/s3c2410fb.h
0003  *  Copyright (c) 2004 Arnaud Patard
0004  *
0005  *  S3C2410 LCD Framebuffer Driver
0006  *
0007  * This file is subject to the terms and conditions of the GNU General Public
0008  * License.  See the file COPYING in the main directory of this archive for
0009  * more details.
0010  *
0011 */
0012 
0013 #ifndef __S3C2410FB_H
0014 #define __S3C2410FB_H
0015 
0016 enum s3c_drv_type {
0017     DRV_S3C2410,
0018     DRV_S3C2412,
0019 };
0020 
0021 struct s3c2410fb_info {
0022     struct device       *dev;
0023     struct clk      *clk;
0024 
0025     struct resource     *mem;
0026     void __iomem        *io;
0027     void __iomem        *irq_base;
0028 
0029     enum s3c_drv_type   drv_type;
0030     struct s3c2410fb_hw regs;
0031 
0032     unsigned long       clk_rate;
0033     unsigned int        palette_ready;
0034 
0035 #ifdef CONFIG_ARM_S3C24XX_CPUFREQ
0036     struct notifier_block   freq_transition;
0037 #endif
0038 
0039     /* keep these registers in case we need to re-write palette */
0040     u32         palette_buffer[256];
0041     u32         pseudo_pal[16];
0042 };
0043 
0044 #define PALETTE_BUFF_CLEAR (0x80000000) /* entry is clear/invalid */
0045 
0046 int s3c2410fb_init(void);
0047 
0048 #endif