[ARM] S3C24XX: Additional include moves
[deliverable/linux.git] / arch / arm / mach-s3c2410 / mach-qt2410.c
index 0c1ff0a41a998ba963f6f97185f8ca9a5eb37821..53ad949ef6c241b4e6bd473fcb501afd4e2f224e 100644 (file)
 #include <asm/mach/map.h>
 #include <asm/mach/irq.h>
 
-#include <asm/hardware.h>
+#include <mach/hardware.h>
 #include <asm/io.h>
 #include <asm/irq.h>
 #include <asm/mach-types.h>
 
-#include <asm/arch/regs-gpio.h>
-#include <asm/arch/leds-gpio.h>
-#include <asm/plat-s3c/regs-serial.h>
-#include <asm/arch/fb.h>
+#include <mach/regs-gpio.h>
+#include <mach/leds-gpio.h>
+#include <plat/regs-serial.h>
+#include <mach/fb.h>
 #include <asm/plat-s3c/nand.h>
 #include <asm/plat-s3c24xx/udc.h>
-#include <asm/arch/spi.h>
-#include <asm/arch/spi-gpio.h>
+#include <mach/spi.h>
+#include <mach/spi-gpio.h>
 
-#include <asm/plat-s3c24xx/common-smdk.h>
-#include <asm/plat-s3c24xx/devs.h>
-#include <asm/plat-s3c24xx/cpu.h>
-#include <asm/plat-s3c24xx/pm.h>
+#include <plat/common-smdk.h>
+#include <plat/devs.h>
+#include <plat/cpu.h>
+#include <plat/pm.h>
 
 static struct map_desc qt2410_iodesc[] __initdata = {
        { 0xe0000000, __phys_to_pfn(S3C2410_CS3+0x01000000), SZ_1M, MT_DEVICE }
@@ -98,112 +98,70 @@ static struct s3c2410_uartcfg smdk2410_uartcfgs[] = {
 static struct s3c2410fb_display qt2410_lcd_cfg[] __initdata = {
        {
                /* Configuration for 640x480 SHARP LQ080V3DG01 */
-               .regs   = {
-
-                       .lcdcon1 = S3C2410_LCDCON1_TFT16BPP |
-                                  S3C2410_LCDCON1_TFT |
-                                  S3C2410_LCDCON1_CLKVAL(0x01), /* HCLK/4 */
-
-                       .lcdcon2 = S3C2410_LCDCON2_VBPD(18) |   /* 19 */
-                                  S3C2410_LCDCON2_LINEVAL(479) |
-                                  S3C2410_LCDCON2_VFPD(10) |   /* 11 */
-                                  S3C2410_LCDCON2_VSPW(14),    /* 15 */
-
-                       .lcdcon3 = S3C2410_LCDCON3_HBPD(43) |   /* 44 */
-                                  S3C2410_LCDCON3_HOZVAL(639) | /* 640 */
-                                  S3C2410_LCDCON3_HFPD(115),   /* 116 */
-
-                       .lcdcon4 = S3C2410_LCDCON4_MVAL(0) |
-                                  S3C2410_LCDCON4_HSPW(95),    /* 96 */
-
-                       .lcdcon5 = S3C2410_LCDCON5_FRM565 |
-                                  S3C2410_LCDCON5_INVVLINE |
-                                  S3C2410_LCDCON5_INVVFRAME |
-                                  S3C2410_LCDCON5_PWREN |
-                                  S3C2410_LCDCON5_HWSWP,
-               },
+               .lcdcon5 = S3C2410_LCDCON5_FRM565 |
+                          S3C2410_LCDCON5_INVVLINE |
+                          S3C2410_LCDCON5_INVVFRAME |
+                          S3C2410_LCDCON5_PWREN |
+                          S3C2410_LCDCON5_HWSWP,
 
                .type           = S3C2410_LCDCON1_TFT,
                .width          = 640,
                .height         = 480,
 
+               .pixclock       = 40000, /* HCLK/4 */
                .xres           = 640,
                .yres           = 480,
                .bpp            = 16,
                .left_margin    = 44,
                .right_margin   = 116,
+               .hsync_len      = 96,
+               .upper_margin   = 19,
+               .lower_margin   = 11,
+               .vsync_len      = 15,
        },
        {
                /* Configuration for 480x640 toppoly TD028TTEC1 */
-               .regs   = {
-
-                       .lcdcon1 = S3C2410_LCDCON1_TFT16BPP |
-                                  S3C2410_LCDCON1_TFT |
-                                  S3C2410_LCDCON1_CLKVAL(0x01), /* HCLK/4 */
-
-                       .lcdcon2 = S3C2410_LCDCON2_VBPD(1) |    /* 2 */
-                                  S3C2410_LCDCON2_LINEVAL(639) |/* 640 */
-                                  S3C2410_LCDCON2_VFPD(3) |    /* 4 */
-                                  S3C2410_LCDCON2_VSPW(1),     /* 2 */
-
-                       .lcdcon3 = S3C2410_LCDCON3_HBPD(7) |    /* 8 */
-                                  S3C2410_LCDCON3_HOZVAL(479) | /* 479 */
-                                  S3C2410_LCDCON3_HFPD(23),    /* 24 */
-
-                       .lcdcon4 = S3C2410_LCDCON4_MVAL(0) |
-                                  S3C2410_LCDCON4_HSPW(7),     /* 8 */
-
-                       .lcdcon5 = S3C2410_LCDCON5_FRM565 |
-                                  S3C2410_LCDCON5_INVVLINE |
-                                  S3C2410_LCDCON5_INVVFRAME |
-                                  S3C2410_LCDCON5_PWREN |
-                                  S3C2410_LCDCON5_HWSWP,
-               },
+               .lcdcon5 = S3C2410_LCDCON5_FRM565 |
+                          S3C2410_LCDCON5_INVVLINE |
+                          S3C2410_LCDCON5_INVVFRAME |
+                          S3C2410_LCDCON5_PWREN |
+                          S3C2410_LCDCON5_HWSWP,
 
                .type           = S3C2410_LCDCON1_TFT,
                .width          = 480,
                .height         = 640,
+               .pixclock       = 40000, /* HCLK/4 */
                .xres           = 480,
                .yres           = 640,
                .bpp            = 16,
                .left_margin    = 8,
                .right_margin   = 24,
+               .hsync_len      = 8,
+               .upper_margin   = 2,
+               .lower_margin   = 4,
+               .vsync_len      = 2,
        },
        {
                /* Config for 240x320 LCD */
-               .regs   = {
-
-                       .lcdcon1 = S3C2410_LCDCON1_TFT16BPP |
-                                  S3C2410_LCDCON1_TFT |
-                                  S3C2410_LCDCON1_CLKVAL(0x04),
-
-                       .lcdcon2 = S3C2410_LCDCON2_VBPD(1) |
-                                  S3C2410_LCDCON2_LINEVAL(319) |
-                                  S3C2410_LCDCON2_VFPD(6) |
-                                  S3C2410_LCDCON2_VSPW(3),
-
-                       .lcdcon3 = S3C2410_LCDCON3_HBPD(12) |
-                                  S3C2410_LCDCON3_HOZVAL(239) |
-                                  S3C2410_LCDCON3_HFPD(7),
-
-                       .lcdcon4 = S3C2410_LCDCON4_MVAL(0) |
-                                  S3C2410_LCDCON4_HSPW(3),
-
-                       .lcdcon5 = S3C2410_LCDCON5_FRM565 |
-                                  S3C2410_LCDCON5_INVVLINE |
-                                  S3C2410_LCDCON5_INVVFRAME |
-                                  S3C2410_LCDCON5_PWREN |
-                                  S3C2410_LCDCON5_HWSWP,
-               },
+               .lcdcon5 = S3C2410_LCDCON5_FRM565 |
+                          S3C2410_LCDCON5_INVVLINE |
+                          S3C2410_LCDCON5_INVVFRAME |
+                          S3C2410_LCDCON5_PWREN |
+                          S3C2410_LCDCON5_HWSWP,
 
                .type           = S3C2410_LCDCON1_TFT,
                .width          = 240,
                .height         = 320,
+               .pixclock       = 100000, /* HCLK/10 */
                .xres           = 240,
                .yres           = 320,
                .bpp            = 16,
                .left_margin    = 13,
                .right_margin   = 8,
+               .hsync_len      = 4,
+               .upper_margin   = 2,
+               .lower_margin   = 7,
+               .vsync_len      = 4,
        },
 };
 
This page took 0.046366 seconds and 5 git commands to generate.