Commit 6ccf58ab authored by Dave Jones's avatar Dave Jones

[CPUFREQ] sets nforce2 minimum PLL divider to 2.

Sets minimum PLL divider to 2.
No negative impact when tested with two nForce2 based boards.

Alexander Choporov reported (06/01/06) that xdiv = 1 does not work on his
Abit NF7S2. Although there shouldn't be much cases that lead to xdiv = 1.

(Updates also the (C) year)
Signed-off-by: default avatarSebastian Witt <se.witt@gmx.net>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 436fe7b8
/* /*
* (C) 2004 Sebastian Witt <se.witt@gmx.net> * (C) 2004-2006 Sebastian Witt <se.witt@gmx.net>
* *
* Licensed under the terms of the GNU GPL License version 2. * Licensed under the terms of the GNU GPL License version 2.
* Based upon reverse engineered information * Based upon reverse engineered information
...@@ -90,7 +90,7 @@ static int nforce2_calc_pll(unsigned int fsb) ...@@ -90,7 +90,7 @@ static int nforce2_calc_pll(unsigned int fsb)
/* Try to calculate multiplier and divider up to 4 times */ /* Try to calculate multiplier and divider up to 4 times */
while (((mul == 0) || (div == 0)) && (tried <= 3)) { while (((mul == 0) || (div == 0)) && (tried <= 3)) {
for (xdiv = 1; xdiv <= 0x80; xdiv++) for (xdiv = 2; xdiv <= 0x80; xdiv++)
for (xmul = 1; xmul <= 0xfe; xmul++) for (xmul = 1; xmul <= 0xfe; xmul++)
if (nforce2_calc_fsb(NFORCE2_PLL(xmul, xdiv)) == if (nforce2_calc_fsb(NFORCE2_PLL(xmul, xdiv)) ==
fsb + tried) { fsb + tried) {
......
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