Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27464
b: refs/heads/master
c: 16109b3
h: refs/heads/master
v: v3
  • Loading branch information
Dave Airlie committed Apr 3, 2006
1 parent 1192ecd commit 313cd1b
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 8492f081e5552ff388068f612eae6f55f7210ed4
refs/heads/master: 16109b3f4c1f2635afd32eb6d49348590de2cb25
13 changes: 7 additions & 6 deletions trunk/drivers/video/intelfb/intelfbhw.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,16 @@ struct pll_min_max {
int min_p1, max_p1;
int min_vco_freq, max_vco_freq;
int p_transition_clock;
int p_inc_lo, p_inc_hi;
};

#define PLLS_I8xx 0
#define PLLS_I9xx 1
#define PLLS_MAX 2

struct pll_min_max plls[PLLS_MAX] = {
{ 108, 140, 18, 26, 6, 16, 3, 16, 4, 128, 0, 31, 930000, 1400000, 165000 }, //I8xx
{ 75, 120, 10, 20, 5, 9, 4, 7, 5, 80, 1, 8, 930000, 2800000, 200000 } //I9xx
{ 108, 140, 18, 26, 6, 16, 3, 16, 4, 128, 0, 31, 930000, 1400000, 165000, 4, 22 }, //I8xx
{ 75, 120, 10, 20, 5, 9, 4, 7, 5, 80, 1, 8, 930000, 2800000, 200000, 10, 5 } //I9xx
};

int
Expand Down Expand Up @@ -822,15 +823,15 @@ calc_pll_params(int index, int clock, u32 *retm1, u32 *retm2, u32 *retn, u32 *re
div_min = ROUND_UP_TO(plls[index].min_vco_freq, clock) / clock;

if (clock <= plls[index].p_transition_clock)
p_inc = 4;
p_inc = plls[index].p_inc_lo;
else
p_inc = 2;
p_inc = plls[index].p_inc_hi;
p_min = ROUND_UP_TO(div_min, p_inc);
p_max = ROUND_DOWN_TO(div_max, p_inc);
if (p_min < plls[index].min_p)
p_min = 4;
p_min = plls[index].min_p;
if (p_max > plls[index].max_p)
p_max = 128;
p_max = plls[index].max_p;

DBG_MSG("p range is %d-%d (%d)\n", p_min, p_max, p_inc);

Expand Down

0 comments on commit 313cd1b

Please sign in to comment.