Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

video: s3c-fb: move enabling channel for window

This patch moves enabling channel for window, because there should
be enabling channel before enabling window. If the sequence is
reversed, it makes the problem in displaying images to lcd panel.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

authored by

Jingoo Han and committed by
Paul Mundt
fab7c5b7 13e6af88

+7 -7
+7 -7
drivers/video/s3c-fb.c
··· 557 557 vidosd_set_alpha(win, alpha); 558 558 vidosd_set_size(win, data); 559 559 560 + /* Enable DMA channel for this window */ 561 + if (sfb->variant.has_shadowcon) { 562 + data = readl(sfb->regs + SHADOWCON); 563 + data |= SHADOWCON_CHx_ENABLE(win_no); 564 + writel(data, sfb->regs + SHADOWCON); 565 + } 566 + 560 567 data = WINCONx_ENWIN; 561 568 562 569 /* note, since we have to round up the bits-per-pixel, we end up ··· 642 635 643 636 writel(data, regs + sfb->variant.wincon + (win_no * 4)); 644 637 writel(0x0, regs + sfb->variant.winmap + (win_no * 4)); 645 - 646 - /* Enable DMA channel for this window */ 647 - if (sfb->variant.has_shadowcon) { 648 - data = readl(sfb->regs + SHADOWCON); 649 - data |= SHADOWCON_CHx_ENABLE(win_no); 650 - writel(data, sfb->regs + SHADOWCON); 651 - } 652 638 653 639 shadow_protect_win(win, 0); 654 640