Commit 3aff13cf authored by Dave Airlie's avatar Dave Airlie

intelfb: fixup p calculation

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: default avatarDave Airlie <airlied@linux.ie>
parent 46f60b8e
...@@ -286,7 +286,7 @@ struct intelfb_info { ...@@ -286,7 +286,7 @@ struct intelfb_info {
int pll_index; 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 ***/ /*** function prototypes ***/
......
...@@ -1480,7 +1480,7 @@ intelfb_cursor(struct fb_info *info, struct fb_cursor *cursor) ...@@ -1480,7 +1480,7 @@ intelfb_cursor(struct fb_info *info, struct fb_cursor *cursor)
intelfbhw_cursor_hide(dinfo); intelfbhw_cursor_hide(dinfo);
/* If XFree killed the cursor - restore it */ /* 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); (dinfo->cursor.offset << 12);
if (INREG(CURSOR_A_BASEADDR) != physical) { if (INREG(CURSOR_A_BASEADDR) != physical) {
......
This diff is collapsed.
...@@ -133,6 +133,7 @@ ...@@ -133,6 +133,7 @@
#define DPLL_VGA_MODE_DISABLE (1 << 28) #define DPLL_VGA_MODE_DISABLE (1 << 28)
#define DPLL_P2_MASK 1 #define DPLL_P2_MASK 1
#define DPLL_P2_SHIFT 23 #define DPLL_P2_SHIFT 23
#define DPLL_I9XX_P2_SHIFT 24
#define DPLL_P1_FORCE_DIV2 (1 << 21) #define DPLL_P1_FORCE_DIV2 (1 << 21)
#define DPLL_P1_MASK 0x1f #define DPLL_P1_MASK 0x1f
#define DPLL_P1_SHIFT 16 #define DPLL_P1_SHIFT 16
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment