Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130789
b: refs/heads/master
c: 7fbb7ca
h: refs/heads/master
i:
  130787: 9b5fae5
v: v3
  • Loading branch information
Risto Suominen authored and Benjamin Herrenschmidt committed Feb 2, 2009
1 parent 64385ec commit d2ec4f2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 59b608c2c33feacc8be281ec3ba9ca2a3a5cb9a7
refs/heads/master: 7fbb7cadd062baf299fd8b26a80ea99da0c3fe01
11 changes: 11 additions & 0 deletions trunk/drivers/video/aty/mach64_ct.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#include <asm/io.h>
#include <video/mach64.h>
#include "atyfb.h"
#ifdef CONFIG_PPC
#include <asm/machdep.h>
#endif

#undef DEBUG

Expand Down Expand Up @@ -536,6 +539,14 @@ static int __devinit aty_init_pll_ct(const struct fb_info *info,
pll->ct.xclk_post_div_real = postdividers[xpost_div];
pll->ct.mclk_fb_div = q * pll->ct.xclk_post_div_real / 8;

#ifdef CONFIG_PPC
if (machine_is(powermac)) {
/* Override PLL_EXT_CNTL & 0x07. */
pll->ct.xclk_post_div = xpost_div;
pll->ct.xclk_ref_div = 1;
}
#endif

#ifdef DEBUG
pllmclk = (1000000 * pll->ct.mclk_fb_mult * pll->ct.mclk_fb_div) /
(par->ref_clk_per * pll->ct.pll_ref_div);
Expand Down

0 comments on commit d2ec4f2

Please sign in to comment.