Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164834
b: refs/heads/master
c: fd0eecb
h: refs/heads/master
v: v3
  • Loading branch information
Imre Deak authored and Linus Torvalds committed Sep 23, 2009
1 parent 82b9ab3 commit 67e1f0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c8f1c1b9e120223ab5b619ff0fc1f32c635248ad
refs/heads/master: fd0eecbdfbb61076e75d34034cc5cd5ca1321a81
8 changes: 4 additions & 4 deletions trunk/drivers/video/omap/dispc.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,15 +286,15 @@ static void setup_plane_fifo(int plane, int ext_mode)
BUG_ON(plane > 2);

l = dispc_read_reg(fsz_reg[plane]);
l &= FLD_MASK(0, 9);
l &= FLD_MASK(0, 11);
if (ext_mode) {
low = l * 3 / 4;
high = l;
} else {
low = l / 4;
high = l * 3 / 4;
}
MOD_REG_FLD(ftrs_reg[plane], FLD_MASK(16, 9) | FLD_MASK(0, 9),
MOD_REG_FLD(ftrs_reg[plane], FLD_MASK(16, 12) | FLD_MASK(0, 12),
(high << 16) | low);
}

Expand Down Expand Up @@ -1397,7 +1397,7 @@ static int omap_dispc_init(struct omapfb_device *fbdev, int ext_mode,
}

/* Enable smart idle and autoidle */
l = dispc_read_reg(DISPC_CONTROL);
l = dispc_read_reg(DISPC_SYSCONFIG);
l &= ~((3 << 12) | (3 << 3));
l |= (2 << 12) | (2 << 3) | (1 << 0);
dispc_write_reg(DISPC_SYSCONFIG, l);
Expand All @@ -1409,7 +1409,7 @@ static int omap_dispc_init(struct omapfb_device *fbdev, int ext_mode,
dispc_write_reg(DISPC_CONFIG, l);

l = dispc_read_reg(DISPC_IRQSTATUS);
dispc_write_reg(l, DISPC_IRQSTATUS);
dispc_write_reg(DISPC_IRQSTATUS, l);

/* Enable those that we handle always */
omap_dispc_enable_irqs(DISPC_IRQ_FRAMEMASK);
Expand Down

0 comments on commit 67e1f0d

Please sign in to comment.