Skip to content

Commit

Permalink
intelfb: fixup p calculation
Browse files Browse the repository at this point in the history
This fixes up the p calculation of p1 and p2 for the i9xx chipsets.
This seems to work a lot better for lower pixel clocks..

Signed-off-by: Dave Airlie <airlied@linux.ie>
  • Loading branch information
Dave Airlie committed Apr 3, 2006
1 parent 46f60b8 commit 3aff13c
Show file tree
Hide file tree
Showing 4 changed files with 137 additions and 84 deletions.
2 changes: 1 addition & 1 deletion drivers/video/intelfb/intelfb.h
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ struct intelfb_info {
int pll_index;
};

#define IS_I9xx(dinfo) (((dinfo)->chipset == INTEL_915G)||(dinfo->chipset == INTEL_915GM)||((dinfo)->chipset == INTEL_945G)||(dinfo->chipset==INTEL_945GM))
#define IS_I9XX(dinfo) (((dinfo)->chipset == INTEL_915G)||(dinfo->chipset == INTEL_915GM)||((dinfo)->chipset == INTEL_945G)||(dinfo->chipset==INTEL_945GM))

/*** function prototypes ***/

Expand Down
2 changes: 1 addition & 1 deletion drivers/video/intelfb/intelfbdrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1480,7 +1480,7 @@ intelfb_cursor(struct fb_info *info, struct fb_cursor *cursor)
intelfbhw_cursor_hide(dinfo);

/* If XFree killed the cursor - restore it */
physical = (dinfo->mobile || IS_I9xx(dinfo)) ? dinfo->cursor.physical :
physical = (dinfo->mobile || IS_I9XX(dinfo)) ? dinfo->cursor.physical :
(dinfo->cursor.offset << 12);

if (INREG(CURSOR_A_BASEADDR) != physical) {
Expand Down
Loading

0 comments on commit 3aff13c

Please sign in to comment.