Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 94143
b: refs/heads/master
c: f0a0c1f
h: refs/heads/master
i:
  94141: 18bde4e
  94139: b882dbd
  94135: 5ec9894
  94127: e25320e
  94111: bac4e81
  94079: 1cfee4f
v: v3
  • Loading branch information
Jordan Crouse authored and Linus Torvalds committed Apr 28, 2008
1 parent ab02271 commit 6eaed97
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 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: e9338364e6989ca2707638c7c70ae22975b0bb6c
refs/heads/master: f0a0c1f20f837221c0d990a54ae5426acf039036
16 changes: 10 additions & 6 deletions trunk/drivers/video/geode/video_gx.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ gx_configure_tft(struct fb_info *info)

fp = 0x0F100000;

/* Add sync polarity */
/* Configure sync polarity */

if (!(info->var.sync & FB_SYNC_VERT_HIGH_ACT))
fp |= GX_FP_PT2_VSP;
Expand Down Expand Up @@ -269,11 +269,15 @@ static void gx_configure_display(struct fb_info *info)
/* Enable hsync and vsync. */
dcfg |= GX_DCFG_HSYNC_EN | GX_DCFG_VSYNC_EN;

/* Sync polarities. */
if (info->var.sync & FB_SYNC_HOR_HIGH_ACT)
dcfg |= GX_DCFG_CRT_HSYNC_POL;
if (info->var.sync & FB_SYNC_VERT_HIGH_ACT)
dcfg |= GX_DCFG_CRT_VSYNC_POL;
/* Only change the sync polarities if we are running
* in CRT mode. The FP polarities will be handled in
* gxfb_configure_tft */
if (par->enable_crt) {
if (!(info->var.sync & FB_SYNC_HOR_HIGH_ACT))
dcfg |= GX_DCFG_CRT_HSYNC_POL;
if (!(info->var.sync & FB_SYNC_VERT_HIGH_ACT))
dcfg |= GX_DCFG_CRT_VSYNC_POL;
}

/* Enable the display logic */
/* Set up the DACS to blank normally */
Expand Down

0 comments on commit 6eaed97

Please sign in to comment.