mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
s3c-fb: add default window feature.
s5pv210 has five window layers (window0 ~ 4), among them, window0 ~ 2 could be used for local path with fimc(capture device) and fimd writeback feature so this patch makes default window layer for UI to be set at machine code. Signed-off-by: InKi Dae <[email protected]> Reviewed-by: KyungMin Park <kyungmin.park.samsung.com> Signed-off-by: Ben Dooks <[email protected]> Signed-off-by: Pawel Osciak <[email protected]> Cc: Marek Szyprowski <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
45649fdb54
commit
ad04490a17
2 changed files with 6 additions and 3 deletions
|
|
@ -300,9 +300,9 @@ static int s3c_fb_set_par(struct fb_info *info)
|
|||
/* disable the window whilst we update it */
|
||||
writel(0, regs + WINCON(win_no));
|
||||
|
||||
/* use window 0 as the basis for the lcd output timings */
|
||||
/* use platform specified window as the basis for the lcd timings */
|
||||
|
||||
if (win_no == 0) {
|
||||
if (win_no == sfb->pdata->default_win) {
|
||||
clkdiv = s3c_fb_calc_pixclk(sfb, var->pixclock);
|
||||
|
||||
data = sfb->pdata->vidcon0;
|
||||
|
|
@ -636,7 +636,7 @@ static int s3c_fb_blank(int blank_mode, struct fb_info *info)
|
|||
/* we're stuck with this until we can do something about overriding
|
||||
* the power control using the blanking event for a single fb.
|
||||
*/
|
||||
if (index == 0)
|
||||
if (index == sfb->pdata->default_win)
|
||||
s3c_fb_enable(sfb, blank_mode != FB_BLANK_POWERDOWN ? 1 : 0);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue