MINI2440: Added new T35 (QVGA) and Innolux 5.6" (VGA) TFTsmini2440-dev-likely
authorMichel Pollet <buserror@gmail.com>
Tue, 24 Nov 2009 22:36:40 +0000 (24 22:36 +0000)
committerMichel Pollet <buserror@gmail.com>
Tue, 24 Nov 2009 22:36:40 +0000 (24 22:36 +0000)
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 <buserror@gmail.com>
arch/arm/mach-s3c2440/mach-mini2440.c

index 8a78afb..159e6a7 100644 (file)
@@ -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 */