2005-09-10 03:10:07 +07:00
|
|
|
/*
|
2006-10-04 04:01:26 +07:00
|
|
|
* linux/drivers/video/s3c2410fb.h
|
2008-05-24 03:04:56 +07:00
|
|
|
* Copyright (c) 2004 Arnaud Patard
|
|
|
|
*
|
|
|
|
* S3C2410 LCD Framebuffer Driver
|
2005-09-10 03:10:07 +07:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
2008-05-24 03:04:56 +07:00
|
|
|
*/
|
2005-09-10 03:10:07 +07:00
|
|
|
|
|
|
|
#ifndef __S3C2410FB_H
|
|
|
|
#define __S3C2410FB_H
|
|
|
|
|
2008-02-06 16:39:41 +07:00
|
|
|
enum s3c_drv_type {
|
|
|
|
DRV_S3C2410,
|
|
|
|
DRV_S3C2412,
|
|
|
|
};
|
|
|
|
|
2005-09-10 03:10:07 +07:00
|
|
|
struct s3c2410fb_info {
|
|
|
|
struct device *dev;
|
|
|
|
struct clk *clk;
|
|
|
|
|
2007-07-31 14:37:37 +07:00
|
|
|
struct resource *mem;
|
|
|
|
void __iomem *io;
|
2008-02-06 16:39:41 +07:00
|
|
|
void __iomem *irq_base;
|
2007-07-31 14:37:37 +07:00
|
|
|
|
2008-02-06 16:39:41 +07:00
|
|
|
enum s3c_drv_type drv_type;
|
2005-09-10 03:10:07 +07:00
|
|
|
struct s3c2410fb_hw regs;
|
|
|
|
|
2009-06-17 05:34:34 +07:00
|
|
|
unsigned long clk_rate;
|
2005-09-10 03:10:07 +07:00
|
|
|
unsigned int palette_ready;
|
|
|
|
|
2016-06-27 19:52:25 +07:00
|
|
|
#ifdef CONFIG_ARM_S3C24XX_CPUFREQ
|
2009-06-17 05:34:34 +07:00
|
|
|
struct notifier_block freq_transition;
|
|
|
|
#endif
|
|
|
|
|
2005-09-10 03:10:07 +07:00
|
|
|
/* 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
|