Skip to content

Commit

Permalink
Merge pull request #48 from sidorsett/master
Browse files Browse the repository at this point in the history
Changes for AMD14H
  • Loading branch information
kevinlekiller committed Nov 13, 2022
2 parents f302b80 + 274119c commit a10ccd0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions amdctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,7 @@ void printNbStates() {
}
switch (cpuFamily) {
case AMD12H:
case AMD14H:
case AMD15H:
case AMD16H:
break;
Expand All @@ -670,6 +671,7 @@ void printNbStates() {
printf("Northbridge:\n");
switch (cpuFamily) {
case AMD12H:
case AMD14H:
//Pstate 0 = D18F3xDC
rwPciReg("18.3", 0xdc, 1);
nbvid = getDec("18:12");
Expand Down Expand Up @@ -871,8 +873,7 @@ unsigned short vidTomV(const unsigned short vid) {
}

// https://github.com/mpollice/AmdMsrTweaker/blob/master/Info.cpp#L47
if (cpuFamily == AMD14H ||
(cpuFamily == AMD15H && ((cpuModel > 0x0f && cpuModel < 0x20) || (cpuModel > 0x2f && cpuModel < 0x40))) ||
if ((cpuFamily == AMD15H && ((cpuModel > 0x0f && cpuModel < 0x20) || (cpuModel > 0x2f && cpuModel < 0x40))) ||
cpuFamily == AMD17H ||
cpuFamily == AMD19H) {
return (MAX_VOLTAGE - (vid * VID_DIVIDOR3));
Expand Down

0 comments on commit a10ccd0

Please sign in to comment.