aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-s3c2410/mach-amlm5900.c1
-rw-r--r--arch/arm/mach-s3c2410/mach-bast.c3
-rw-r--r--arch/arm/mach-s3c2410/mach-h1940.c4
-rw-r--r--arch/arm/mach-s3c2410/mach-qt2410.c12
-rw-r--r--arch/arm/mach-s3c2440/mach-rx3715.c4
-rw-r--r--arch/arm/mach-s3c2440/mach-smdk2440.c4
-rw-r--r--drivers/video/s3c2410fb.c9
-rw-r--r--include/asm-arm/arch-s3c2410/fb.h1
8 files changed, 1 insertions, 37 deletions
diff --git a/arch/arm/mach-s3c2410/mach-amlm5900.c b/arch/arm/mach-s3c2410/mach-amlm5900.c
index a86d68d22a72..a67a0685664d 100644
--- a/arch/arm/mach-s3c2410/mach-amlm5900.c
+++ b/arch/arm/mach-s3c2410/mach-amlm5900.c
@@ -184,7 +184,6 @@ static struct s3c2410fb_display __initdata amlm5900_lcd_info = {
184 .upper_margin = 0, 184 .upper_margin = 0,
185 .lower_margin = 0, 185 .lower_margin = 0,
186 186
187 .lcdcon1 = 0x00008225,
188 .lcdcon5 = 0x00000001, 187 .lcdcon5 = 0x00000001,
189}; 188};
190 189
diff --git a/arch/arm/mach-s3c2410/mach-bast.c b/arch/arm/mach-s3c2410/mach-bast.c
index 103fc5724735..587864fe25fb 100644
--- a/arch/arm/mach-s3c2410/mach-bast.c
+++ b/arch/arm/mach-s3c2410/mach-bast.c
@@ -484,7 +484,6 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = {
484 .lower_margin = 32, 484 .lower_margin = 32,
485 .vsync_len = 3, 485 .vsync_len = 3,
486 486
487 .lcdcon1 = 0x00000176,
488 .lcdcon5 = 0x00014b02, 487 .lcdcon5 = 0x00014b02,
489 }, 488 },
490 { 489 {
@@ -503,7 +502,6 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = {
503 .lower_margin = 32, 502 .lower_margin = 32,
504 .vsync_len = 3, 503 .vsync_len = 3,
505 504
506 .lcdcon1 = 0x00000176,
507 .lcdcon5 = 0x00014b02, 505 .lcdcon5 = 0x00014b02,
508 }, 506 },
509 { 507 {
@@ -522,7 +520,6 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = {
522 .lower_margin = 32, 520 .lower_margin = 32,
523 .vsync_len = 3, 521 .vsync_len = 3,
524 522
525 .lcdcon1 = 0x00000176,
526 .lcdcon5 = 0x00014b02, 523 .lcdcon5 = 0x00014b02,
527 }, 524 },
528}; 525};
diff --git a/arch/arm/mach-s3c2410/mach-h1940.c b/arch/arm/mach-s3c2410/mach-h1940.c
index 8a508428a9e5..7c1145e87c12 100644
--- a/arch/arm/mach-s3c2410/mach-h1940.c
+++ b/arch/arm/mach-s3c2410/mach-h1940.c
@@ -134,10 +134,6 @@ static struct s3c2410_udc_mach_info h1940_udc_cfg __initdata = {
134 * Set lcd on or off 134 * Set lcd on or off
135 **/ 135 **/
136static struct s3c2410fb_display h1940_lcd __initdata = { 136static struct s3c2410fb_display h1940_lcd __initdata = {
137 .lcdcon1= S3C2410_LCDCON1_TFT16BPP | \
138 S3C2410_LCDCON1_TFT | \
139 S3C2410_LCDCON1_CLKVAL(0x0C),
140
141 .lcdcon5= S3C2410_LCDCON5_FRM565 | \ 137 .lcdcon5= S3C2410_LCDCON5_FRM565 | \
142 S3C2410_LCDCON5_INVVLINE | \ 138 S3C2410_LCDCON5_INVVLINE | \
143 S3C2410_LCDCON5_HWSWP, 139 S3C2410_LCDCON5_HWSWP,
diff --git a/arch/arm/mach-s3c2410/mach-qt2410.c b/arch/arm/mach-s3c2410/mach-qt2410.c
index 612f62469525..a1caf4b0adac 100644
--- a/arch/arm/mach-s3c2410/mach-qt2410.c
+++ b/arch/arm/mach-s3c2410/mach-qt2410.c
@@ -98,10 +98,6 @@ static struct s3c2410_uartcfg smdk2410_uartcfgs[] = {
98static struct s3c2410fb_display qt2410_lcd_cfg[] __initdata = { 98static struct s3c2410fb_display qt2410_lcd_cfg[] __initdata = {
99 { 99 {
100 /* Configuration for 640x480 SHARP LQ080V3DG01 */ 100 /* Configuration for 640x480 SHARP LQ080V3DG01 */
101 .lcdcon1 = S3C2410_LCDCON1_TFT16BPP |
102 S3C2410_LCDCON1_TFT |
103 S3C2410_LCDCON1_CLKVAL(0x01), /* HCLK/4 */
104
105 .lcdcon5 = S3C2410_LCDCON5_FRM565 | 101 .lcdcon5 = S3C2410_LCDCON5_FRM565 |
106 S3C2410_LCDCON5_INVVLINE | 102 S3C2410_LCDCON5_INVVLINE |
107 S3C2410_LCDCON5_INVVFRAME | 103 S3C2410_LCDCON5_INVVFRAME |
@@ -125,10 +121,6 @@ static struct s3c2410fb_display qt2410_lcd_cfg[] __initdata = {
125 }, 121 },
126 { 122 {
127 /* Configuration for 480x640 toppoly TD028TTEC1 */ 123 /* Configuration for 480x640 toppoly TD028TTEC1 */
128 .lcdcon1 = S3C2410_LCDCON1_TFT16BPP |
129 S3C2410_LCDCON1_TFT |
130 S3C2410_LCDCON1_CLKVAL(0x01), /* HCLK/4 */
131
132 .lcdcon5 = S3C2410_LCDCON5_FRM565 | 124 .lcdcon5 = S3C2410_LCDCON5_FRM565 |
133 S3C2410_LCDCON5_INVVLINE | 125 S3C2410_LCDCON5_INVVLINE |
134 S3C2410_LCDCON5_INVVFRAME | 126 S3C2410_LCDCON5_INVVFRAME |
@@ -151,10 +143,6 @@ static struct s3c2410fb_display qt2410_lcd_cfg[] __initdata = {
151 }, 143 },
152 { 144 {
153 /* Config for 240x320 LCD */ 145 /* Config for 240x320 LCD */
154 .lcdcon1 = S3C2410_LCDCON1_TFT16BPP |
155 S3C2410_LCDCON1_TFT |
156 S3C2410_LCDCON1_CLKVAL(0x04),
157
158 .lcdcon5 = S3C2410_LCDCON5_FRM565 | 146 .lcdcon5 = S3C2410_LCDCON5_FRM565 |
159 S3C2410_LCDCON5_INVVLINE | 147 S3C2410_LCDCON5_INVVLINE |
160 S3C2410_LCDCON5_INVVFRAME | 148 S3C2410_LCDCON5_INVVFRAME |
diff --git a/arch/arm/mach-s3c2440/mach-rx3715.c b/arch/arm/mach-s3c2440/mach-rx3715.c
index 408337f8bebf..bac40c4878a5 100644
--- a/arch/arm/mach-s3c2440/mach-rx3715.c
+++ b/arch/arm/mach-s3c2440/mach-rx3715.c
@@ -111,10 +111,6 @@ static struct s3c2410_uartcfg rx3715_uartcfgs[] = {
111/* framebuffer lcd controller information */ 111/* framebuffer lcd controller information */
112 112
113static struct s3c2410fb_display rx3715_lcdcfg __initdata = { 113static struct s3c2410fb_display rx3715_lcdcfg __initdata = {
114 .lcdcon1 = S3C2410_LCDCON1_TFT16BPP | \
115 S3C2410_LCDCON1_TFT | \
116 S3C2410_LCDCON1_CLKVAL(0x0C),
117
118 .lcdcon5 = S3C2410_LCDCON5_INVVLINE | 114 .lcdcon5 = S3C2410_LCDCON5_INVVLINE |
119 S3C2410_LCDCON5_FRM565 | 115 S3C2410_LCDCON5_FRM565 |
120 S3C2410_LCDCON5_HWSWP, 116 S3C2410_LCDCON5_HWSWP,
diff --git a/arch/arm/mach-s3c2440/mach-smdk2440.c b/arch/arm/mach-s3c2440/mach-smdk2440.c
index 561e39147e67..4552828bf800 100644
--- a/arch/arm/mach-s3c2440/mach-smdk2440.c
+++ b/arch/arm/mach-s3c2440/mach-smdk2440.c
@@ -105,10 +105,6 @@ static struct s3c2410_uartcfg smdk2440_uartcfgs[] __initdata = {
105 105
106static struct s3c2410fb_display smdk2440_lcd_cfg __initdata = { 106static struct s3c2410fb_display smdk2440_lcd_cfg __initdata = {
107 107
108 .lcdcon1 = S3C2410_LCDCON1_TFT16BPP |
109 S3C2410_LCDCON1_TFT |
110 S3C2410_LCDCON1_CLKVAL(0x04),
111
112 .lcdcon5 = S3C2410_LCDCON5_FRM565 | 108 .lcdcon5 = S3C2410_LCDCON5_FRM565 |
113 S3C2410_LCDCON5_INVVLINE | 109 S3C2410_LCDCON5_INVVLINE |
114 S3C2410_LCDCON5_INVVFRAME | 110 S3C2410_LCDCON5_INVVFRAME |
diff --git a/drivers/video/s3c2410fb.c b/drivers/video/s3c2410fb.c
index fd05231f0c08..f98e4335f152 100644
--- a/drivers/video/s3c2410fb.c
+++ b/drivers/video/s3c2410fb.c
@@ -207,11 +207,9 @@ static int s3c2410fb_check_var(struct fb_var_screeninfo *var,
207 var->vsync_len = display->vsync_len; 207 var->vsync_len = display->vsync_len;
208 var->hsync_len = display->hsync_len; 208 var->hsync_len = display->hsync_len;
209 209
210 fbi->regs.lcdcon1 = display->lcdcon1;
211 fbi->regs.lcdcon5 = display->lcdcon5; 210 fbi->regs.lcdcon5 = display->lcdcon5;
212 /* set display type */ 211 /* set display type */
213 fbi->regs.lcdcon1 &= ~S3C2410_LCDCON1_TFT; 212 fbi->regs.lcdcon1 = display->type;
214 fbi->regs.lcdcon1 |= display->type;
215 213
216 var->transp.offset = 0; 214 var->transp.offset = 0;
217 var->transp.length = 0; 215 var->transp.length = 0;
@@ -301,8 +299,6 @@ static void s3c2410fb_calculate_stn_lcd_regs(const struct fb_info *info,
301 if (type != S3C2410_LCDCON1_STN4) 299 if (type != S3C2410_LCDCON1_STN4)
302 hs >>= 1; 300 hs >>= 1;
303 301
304 regs->lcdcon1 &= ~S3C2410_LCDCON1_MODEMASK;
305
306 switch (var->bits_per_pixel) { 302 switch (var->bits_per_pixel) {
307 case 1: 303 case 1:
308 regs->lcdcon1 |= S3C2410_LCDCON1_STN1BPP; 304 regs->lcdcon1 |= S3C2410_LCDCON1_STN1BPP;
@@ -356,8 +352,6 @@ static void s3c2410fb_calculate_tft_lcd_regs(const struct fb_info *info,
356 const struct s3c2410fb_info *fbi = info->par; 352 const struct s3c2410fb_info *fbi = info->par;
357 const struct fb_var_screeninfo *var = &info->var; 353 const struct fb_var_screeninfo *var = &info->var;
358 354
359 regs->lcdcon1 &= ~S3C2410_LCDCON1_MODEMASK;
360
361 switch (var->bits_per_pixel) { 355 switch (var->bits_per_pixel) {
362 case 1: 356 case 1:
363 regs->lcdcon1 |= S3C2410_LCDCON1_TFT1BPP; 357 regs->lcdcon1 |= S3C2410_LCDCON1_TFT1BPP;
@@ -437,7 +431,6 @@ static void s3c2410fb_activate_var(struct fb_info *info)
437 clkdiv = 2; 431 clkdiv = 2;
438 } 432 }
439 433
440 fbi->regs.lcdcon1 &= ~S3C2410_LCDCON1_CLKVAL(0x3ff);
441 fbi->regs.lcdcon1 |= S3C2410_LCDCON1_CLKVAL(clkdiv); 434 fbi->regs.lcdcon1 |= S3C2410_LCDCON1_CLKVAL(clkdiv);
442 435
443 /* write new registers */ 436 /* write new registers */
diff --git a/include/asm-arm/arch-s3c2410/fb.h b/include/asm-arm/arch-s3c2410/fb.h
index 9abe67b04dc8..5d0262601a7e 100644
--- a/include/asm-arm/arch-s3c2410/fb.h
+++ b/include/asm-arm/arch-s3c2410/fb.h
@@ -45,7 +45,6 @@ struct s3c2410fb_display {
45 unsigned short vsync_len; /* value in lines (TFT) or 0 (STN) */ 45 unsigned short vsync_len; /* value in lines (TFT) or 0 (STN) */
46 46
47 /* lcd configuration registers */ 47 /* lcd configuration registers */
48 unsigned long lcdcon1;
49 unsigned long lcdcon5; 48 unsigned long lcdcon5;
50}; 49};
51 50