mirror of https://gitee.com/openkylin/linux.git
video: s3c-fb: clear SHADOWCON register when clearing hardware window registers
All bits of SHADOWCON register should be cleared when clearing hardware window registers; however, some bits of SHADOWCON register are not cleared previously. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
This commit is contained in:
parent
5fc05780b8
commit
ecd57ae28e
|
@ -1348,8 +1348,14 @@ static void s3c_fb_clear_win(struct s3c_fb *sfb, int win)
|
|||
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);
|
||||
|
||||
if (sfb->variant.has_shadowcon) {
|
||||
reg = readl(sfb->regs + SHADOWCON);
|
||||
reg &= ~(SHADOWCON_WINx_PROTECT(win) |
|
||||
SHADOWCON_CHx_ENABLE(win) |
|
||||
SHADOWCON_CHx_LOCAL_ENABLE(win));
|
||||
writel(reg, sfb->regs + SHADOWCON);
|
||||
}
|
||||
}
|
||||
|
||||
static int __devinit s3c_fb_probe(struct platform_device *pdev)
|
||||
|
|
Loading…
Reference in New Issue