2005-09-09 14:10:07 -06:00
|
|
|
/*
|
2006-10-03 15:01:26 -06:00
|
|
|
* linux/drivers/video/s3c2410fb.h
|
2005-09-09 14:10:07 -06:00
|
|
|
* Copyright (c) Arnaud Patard
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* S3C2410 LCD Controller Frame Buffer Driver
|
|
|
|
* based on skeletonfb.c, sa1100fb.h
|
|
|
|
*
|
|
|
|
* ChangeLog
|
|
|
|
*
|
|
|
|
* 2004-12-04: Arnaud Patard <arnaud.patard@rtp-net.org>
|
|
|
|
* - Moved dprintk to s3c2410fb.c
|
|
|
|
*
|
|
|
|
* 2004-09-07: Arnaud Patard <arnaud.patard@rtp-net.org>
|
|
|
|
* - Renamed from h1940fb.h to s3c2410fb.h
|
2007-10-16 02:29:05 -06:00
|
|
|
* - Changed h1940 to s3c2410
|
2005-09-09 14:10:07 -06:00
|
|
|
*
|
|
|
|
* 2004-07-15: Arnaud Patard <arnaud.patard@rtp-net.org>
|
|
|
|
* - First version
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __S3C2410FB_H
|
|
|
|
#define __S3C2410FB_H
|
|
|
|
|
|
|
|
struct s3c2410fb_info {
|
|
|
|
struct device *dev;
|
|
|
|
struct clk *clk;
|
|
|
|
|
2007-07-31 01:37:37 -06:00
|
|
|
struct resource *mem;
|
|
|
|
void __iomem *io;
|
|
|
|
|
2005-09-09 14:10:07 -06:00
|
|
|
struct s3c2410fb_hw regs;
|
|
|
|
|
|
|
|
unsigned int palette_ready;
|
|
|
|
|
|
|
|
/* 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
|