Chameleon

Chameleon Commit Details

Date:2010-07-25 18:27:07 (13 years 8 months ago)
Author:Rekursor
Commit:242
Parents: 241
Message:Fixed incorrect ratios for im965 mobile and i965 chipset, added new case for 1066 ram in recent im965 based laptops
Changes:
M/trunk/i386/libsaio/dram_controllers.c

File differences

trunk/i386/libsaio/dram_controllers.c
119119
120120
121121
122
122
123123
124124
125125
......
185185
186186
187187
188
188189
189190
190191
......
213214
214215
215216
216
217
217218
218219
219220
220221
221222
222223
224
225
226
227
228
223229
224230
225231
case 2:mch_ratio = 166667; break; // 1.666666667
case 3:mch_ratio = 200000; break;
case 4:mch_ratio = 266667; break; // 2.666666667
case 5:mch_ratio = 133553; break; // 1.333333333
case 5:mch_ratio = 333333; break; // 3.333333333
}
break;
default:
case 2:mch_fsb = 800; break;
case 3:mch_fsb = 667; break;
case 6:mch_fsb = 1066; break;
}
switch (mch_fsb)
case 800:
switch ((mch_cfg >> 4) & 7)
{
case 1:mch_ratio = 83000; break; // 0.833333333
case 1:mch_ratio = 83333; break; // 0.833333333
case 2:mch_ratio = 100000; break;
case 3:mch_ratio = 133333; break; // 1.333333333
case 4:mch_ratio = 166667; break; // 1.666666667
case 5:mch_ratio = 200000; break;
}
break;
case 1066:
switch ((mch_cfg >> 4)&7) {
case 5:mch_ratio = 150000; break;
case 6:mch_ratio = 200000; break;
}
}

Archive Download the corresponding diff file

Revision: 242