Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188926
b: refs/heads/master
c: b5c26f9
h: refs/heads/master
v: v3
  • Loading branch information
Michael Grzeschik authored and Linus Torvalds committed Mar 24, 2010
1 parent f51ed4c commit e22525f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 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: 4fd2c20d964a8fb9861045f1022475c9d200d684
refs/heads/master: b5c26f97ec4a17c650055c83cfc1f2ee6d8818eb
2 changes: 2 additions & 0 deletions trunk/drivers/video/geode/lxfb.h
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,8 @@ enum fp_registers {
FP_CRC, /* 0x458 */
};

#define FP_PT2_HSP (1 << 22)
#define FP_PT2_VSP (1 << 23)
#define FP_PT2_SCRC (1 << 27) /* shfclk free */

#define FP_PM_P (1 << 24) /* panel power ctl */
Expand Down
10 changes: 9 additions & 1 deletion trunk/drivers/video/geode/lxfb_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,15 @@ static void lx_graphics_enable(struct fb_info *info)
u32 msrlo, msrhi;

write_fp(par, FP_PT1, 0);
write_fp(par, FP_PT2, FP_PT2_SCRC);
temp = FP_PT2_SCRC;

if (info->var.sync & FB_SYNC_HOR_HIGH_ACT)
temp |= FP_PT2_HSP;

if (info->var.sync & FB_SYNC_VERT_HIGH_ACT)
temp |= FP_PT2_VSP;

write_fp(par, FP_PT2, temp);
write_fp(par, FP_DFC, FP_DFC_BC);

msrlo = MSR_LX_MSR_PADSEL_TFT_SEL_LOW;
Expand Down

0 comments on commit e22525f

Please sign in to comment.