forked from Minki/linux
9fa7bc016a
This patch: - moves more display mode preparations to s3c2410fb_check_var() - reduces number of fields in s3c2410fb_info - removes redundant values setting in s3c2410fb_probe() - removes static mach_info pointer - releases fb_info structure in s3c2410fb_remove() - changes s3c2410fb_init to __init from __devinit - fixes few typos in comments and removes unused includes Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> Signed-off-by: Antonino Daplas <adaplas@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
49 lines
1.1 KiB
C
49 lines
1.1 KiB
C
/*
|
|
* linux/drivers/video/s3c2410fb.h
|
|
* 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
|
|
* - Changed h1940 to s3c2410
|
|
*
|
|
* 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;
|
|
|
|
struct resource *mem;
|
|
void __iomem *io;
|
|
|
|
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
|