aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/omap')
-rw-r--r--drivers/video/omap/dispc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/video/omap/dispc.c b/drivers/video/omap/dispc.c
index 915439dc05a0..f1308aa04feb 100644
--- a/drivers/video/omap/dispc.c
+++ b/drivers/video/omap/dispc.c
@@ -286,7 +286,7 @@ static void setup_plane_fifo(int plane, int ext_mode)
286 BUG_ON(plane > 2); 286 BUG_ON(plane > 2);
287 287
288 l = dispc_read_reg(fsz_reg[plane]); 288 l = dispc_read_reg(fsz_reg[plane]);
289 l &= FLD_MASK(0, 9); 289 l &= FLD_MASK(0, 11);
290 if (ext_mode) { 290 if (ext_mode) {
291 low = l * 3 / 4; 291 low = l * 3 / 4;
292 high = l; 292 high = l;
@@ -294,7 +294,7 @@ static void setup_plane_fifo(int plane, int ext_mode)
294 low = l / 4; 294 low = l / 4;
295 high = l * 3 / 4; 295 high = l * 3 / 4;
296 } 296 }
297 MOD_REG_FLD(ftrs_reg[plane], FLD_MASK(16, 9) | FLD_MASK(0, 9), 297 MOD_REG_FLD(ftrs_reg[plane], FLD_MASK(16, 12) | FLD_MASK(0, 12),
298 (high << 16) | low); 298 (high << 16) | low);
299} 299}
300 300
@@ -1397,7 +1397,7 @@ static int omap_dispc_init(struct omapfb_device *fbdev, int ext_mode,
1397 } 1397 }
1398 1398
1399 /* Enable smart idle and autoidle */ 1399 /* Enable smart idle and autoidle */
1400 l = dispc_read_reg(DISPC_CONTROL); 1400 l = dispc_read_reg(DISPC_SYSCONFIG);
1401 l &= ~((3 << 12) | (3 << 3)); 1401 l &= ~((3 << 12) | (3 << 3));
1402 l |= (2 << 12) | (2 << 3) | (1 << 0); 1402 l |= (2 << 12) | (2 << 3) | (1 << 0);
1403 dispc_write_reg(DISPC_SYSCONFIG, l); 1403 dispc_write_reg(DISPC_SYSCONFIG, l);
@@ -1409,7 +1409,7 @@ static int omap_dispc_init(struct omapfb_device *fbdev, int ext_mode,
1409 dispc_write_reg(DISPC_CONFIG, l); 1409 dispc_write_reg(DISPC_CONFIG, l);
1410 1410
1411 l = dispc_read_reg(DISPC_IRQSTATUS); 1411 l = dispc_read_reg(DISPC_IRQSTATUS);
1412 dispc_write_reg(l, DISPC_IRQSTATUS); 1412 dispc_write_reg(DISPC_IRQSTATUS, l);
1413 1413
1414 /* Enable those that we handle always */ 1414 /* Enable those that we handle always */
1415 omap_dispc_enable_irqs(DISPC_IRQ_FRAMEMASK); 1415 omap_dispc_enable_irqs(DISPC_IRQ_FRAMEMASK);