From e4b4ea3a1896b6fecb6b736f2f3e0016a3b181de Mon Sep 17 00:00:00 2001 From: Michel Pollet Date: Tue, 24 Nov 2009 22:36:40 +0000 Subject: [PATCH] MINI2440: Added new T35 (QVGA) and Innolux 5.6" (VGA) TFTs The new 3.5 shipped with the mini2440 has slightly different timings. The 5.6" screen is rather rare, and needs a special jumper setting but works pretty well. Signed-off-by: Michel Pollet --- arch/arm/mach-s3c2440/mach-mini2440.c | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-s3c2440/mach-mini2440.c b/arch/arm/mach-s3c2440/mach-mini2440.c index 8a78afbeade..159e6a76c31 100644 --- a/arch/arm/mach-s3c2440/mach-mini2440.c +++ b/arch/arm/mach-s3c2440/mach-mini2440.c @@ -145,7 +145,7 @@ static struct s3c2410_udc_mach_info mini2440_udc_cfg __initdata = { S3C2410_LCDCON1_TFT) static struct s3c2410fb_display mini2440_lcd_cfg[] __initdata = { - [0] = { /* mini2440 + 3.5" TFT + touchscreen */ + [0] = { /* mini2440 + 3.5" TFT + touchscreen - old model "N35" */ _LCD_DECLARE( 7, /* The 3.5 is quite fast */ 240, 21, 38, 6, /* x timing */ @@ -184,6 +184,31 @@ static struct s3c2410fb_display mini2440_lcd_cfg[] __initdata = { .lcdcon5 = (S3C2410_LCDCON5_FRM565 | S3C2410_LCDCON5_HWSWP), }, + + [3] = { /* mini2440 + 3.5" TFT + TS -- New model as Nov 2009 "T35" */ + _LCD_DECLARE( + 7, /* The 3.5 is quite fast */ + 240, 21, 25, 6, /* x timing */ + 320, 2, 4, 2, /* y timing */ + 40), /* refresh rate */ + .lcdcon5 = (S3C2410_LCDCON5_FRM565 | + S3C2410_LCDCON5_INVVLINE | + S3C2410_LCDCON5_INVVFRAME | + S3C2410_LCDCON5_INVVDEN | + S3C2410_LCDCON5_PWREN), + }, + [4] = { /* mini2440 + 5.6" TFT + touchscreen -- Innolux AT056TN52 */ + /* be sure the "power" jumper is set accordingly ! */ + _LCD_DECLARE( + 10, /* the 5.3" runs slower */ + 640, 41, 68, 22, /* x timing */ + 480, 26, 6, 2, /* y timing */ + 40), /* refresh rate */ + .lcdcon5 = (S3C2410_LCDCON5_FRM565 | + S3C2410_LCDCON5_INVVLINE | + S3C2410_LCDCON5_INVVFRAME | + S3C2410_LCDCON5_PWREN), + }, }; /* todo - put into gpio header */ -- 2.11.4.GIT