18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * linux/drivers/video/s3c2410fb.h 38c2ecf20Sopenharmony_ci * Copyright (c) 2004 Arnaud Patard 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * S3C2410 LCD Framebuffer Driver 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public 88c2ecf20Sopenharmony_ci * License. See the file COPYING in the main directory of this archive for 98c2ecf20Sopenharmony_ci * more details. 108c2ecf20Sopenharmony_ci * 118c2ecf20Sopenharmony_ci*/ 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#ifndef __S3C2410FB_H 148c2ecf20Sopenharmony_ci#define __S3C2410FB_H 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_cienum s3c_drv_type { 178c2ecf20Sopenharmony_ci DRV_S3C2410, 188c2ecf20Sopenharmony_ci DRV_S3C2412, 198c2ecf20Sopenharmony_ci}; 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_cistruct s3c2410fb_info { 228c2ecf20Sopenharmony_ci struct device *dev; 238c2ecf20Sopenharmony_ci struct clk *clk; 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci struct resource *mem; 268c2ecf20Sopenharmony_ci void __iomem *io; 278c2ecf20Sopenharmony_ci void __iomem *irq_base; 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci enum s3c_drv_type drv_type; 308c2ecf20Sopenharmony_ci struct s3c2410fb_hw regs; 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci unsigned long clk_rate; 338c2ecf20Sopenharmony_ci unsigned int palette_ready; 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci#ifdef CONFIG_ARM_S3C24XX_CPUFREQ 368c2ecf20Sopenharmony_ci struct notifier_block freq_transition; 378c2ecf20Sopenharmony_ci#endif 388c2ecf20Sopenharmony_ci 398c2ecf20Sopenharmony_ci /* keep these registers in case we need to re-write palette */ 408c2ecf20Sopenharmony_ci u32 palette_buffer[256]; 418c2ecf20Sopenharmony_ci u32 pseudo_pal[16]; 428c2ecf20Sopenharmony_ci}; 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci#define PALETTE_BUFF_CLEAR (0x80000000) /* entry is clear/invalid */ 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ciint s3c2410fb_init(void); 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ci#endif 49