20fd576768
This set of two patches add support for the framebuffer of the Samsung S3C2410 ARM SoC. This driver was started about one year ago and is now used on iPAQ h1930/h1940, Acer n30 and probably other s3c2410-based machines I'm not aware of. I've also heard yesterday that it's working also on iPAQ rx3715/rx3115 (s3c2440-based machines). Signed-Off-By: Arnaud Patard <arnaud.patard@rtp-net.org> Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Ben Dooks <ben@trinity.fluff.org> Cc: Russell King <rmk@arm.linux.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
70 lines
1.4 KiB
C
70 lines
1.4 KiB
C
/* linux/include/asm/arch-s3c2410/fb.h
|
|
*
|
|
* Copyright (c) 2004 Arnaud Patard <arnaud.patard@rtp-net.org>
|
|
*
|
|
* Inspired by pxafb.h
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
*
|
|
* Changelog:
|
|
* 07-Sep-2004 RTP Created file
|
|
* 03-Nov-2004 BJD Updated and minor cleanups
|
|
* 03-Aug-2005 RTP Renamed to fb.h
|
|
*/
|
|
|
|
#ifndef __ASM_ARM_FB_H
|
|
#define __ASM_ARM_FB_H
|
|
|
|
#include <asm/arch/regs-lcd.h>
|
|
|
|
struct s3c2410fb_val {
|
|
unsigned int defval;
|
|
unsigned int min;
|
|
unsigned int max;
|
|
};
|
|
|
|
struct s3c2410fb_hw {
|
|
unsigned long lcdcon1;
|
|
unsigned long lcdcon2;
|
|
unsigned long lcdcon3;
|
|
unsigned long lcdcon4;
|
|
unsigned long lcdcon5;
|
|
};
|
|
|
|
struct s3c2410fb_mach_info {
|
|
unsigned char fixed_syncs; /* do not update sync/border */
|
|
|
|
/* Screen size */
|
|
int width;
|
|
int height;
|
|
|
|
/* Screen info */
|
|
struct s3c2410fb_val xres;
|
|
struct s3c2410fb_val yres;
|
|
struct s3c2410fb_val bpp;
|
|
|
|
/* lcd configuration registers */
|
|
struct s3c2410fb_hw regs;
|
|
|
|
/* GPIOs */
|
|
|
|
unsigned long gpcup;
|
|
unsigned long gpcup_mask;
|
|
unsigned long gpccon;
|
|
unsigned long gpccon_mask;
|
|
unsigned long gpdup;
|
|
unsigned long gpdup_mask;
|
|
unsigned long gpdcon;
|
|
unsigned long gpdcon_mask;
|
|
|
|
/* lpc3600 control register */
|
|
unsigned long lpcsel;
|
|
};
|
|
|
|
void __init set_s3c2410fb_info(struct s3c2410fb_mach_info *hard_s3c2410fb_info);
|
|
|
|
#endif /* __ASM_ARM_FB_H */
|