Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208501
b: refs/heads/master
c: a8bdabc
h: refs/heads/master
i:
  208499: 9a398e4
v: v3
  • Loading branch information
Pawel Osciak authored and Linus Torvalds committed Aug 11, 2010
1 parent 8c82f2d commit 0dd7112
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f676ec2a3526465dfa7b5c513a0c2bb22fb70b80
refs/heads/master: a8bdabca3ad69de632bd13f1cb65639e9a556e20
7 changes: 7 additions & 0 deletions trunk/drivers/video/s3c-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,8 @@ static int s3c_fb_set_par(struct fb_info *info)

dev_dbg(sfb->dev, "setting framebuffer parameters\n");

shadow_protect_win(win, 1);

switch (var->bits_per_pixel) {
case 32:
case 24:
Expand Down Expand Up @@ -632,6 +634,8 @@ static int s3c_fb_set_par(struct fb_info *info)
writel(data, regs + sfb->variant.wincon + (win_no * 4));
writel(0x0, regs + sfb->variant.winmap + (win_no * 4));

shadow_protect_win(win, 0);

return 0;
}

Expand Down Expand Up @@ -1228,11 +1232,14 @@ static int __devinit s3c_fb_probe_win(struct s3c_fb *sfb, unsigned int win_no,
static void s3c_fb_clear_win(struct s3c_fb *sfb, int win)
{
void __iomem *regs = sfb->regs;
u32 reg;

writel(0, regs + sfb->variant.wincon + (win * 4));
writel(0, regs + VIDOSD_A(win, sfb->variant));
writel(0, regs + VIDOSD_B(win, sfb->variant));
writel(0, regs + VIDOSD_C(win, sfb->variant));
reg = readl(regs + SHADOWCON);
writel(reg & ~SHADOWCON_WINx_PROTECT(win), regs + SHADOWCON);
}

static int __devinit s3c_fb_probe(struct platform_device *pdev)
Expand Down

0 comments on commit 0dd7112

Please sign in to comment.