Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208486
b: refs/heads/master
c: ad04490
h: refs/heads/master
v: v3
  • Loading branch information
InKi Dae authored and Linus Torvalds committed Aug 11, 2010
1 parent ffa1567 commit f2a4cf0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 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: 45649fdb54c2e3feb59a8648608ed601511f2098
refs/heads/master: ad04490a171915737c9b99d2fa5cb813830f24c1
3 changes: 3 additions & 0 deletions trunk/arch/arm/plat-samsung/include/plat/fb.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ struct s3c_fb_pd_win {
* @setup_gpio: Setup the external GPIO pins to the right state to transfer
* the data from the display system to the connected display
* device.
* @default_win: default window layer number to be used for UI layer.
* @vidcon0: The base vidcon0 values to control the panel data format.
* @vidcon1: The base vidcon1 values to control the panel data output.
* @win: The setup data for each hardware window, or NULL for unused.
Expand All @@ -58,6 +59,8 @@ struct s3c_fb_platdata {

struct s3c_fb_pd_win *win[S3C_FB_MAX_WIN];

u32 default_win;

u32 vidcon0;
u32 vidcon1;
};
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/video/s3c-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit f2a4cf0

Please sign in to comment.