aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/s3c2410fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/s3c2410fb.c')
-rw-r--r--drivers/video/s3c2410fb.c9
1 files changed, 1 insertions, 8 deletions
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 */