mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-31 13:10:30 +00:00
add support for AMD Opteron VID encoding
patch from Philip Pokorny git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1738 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
26fdf01fed
commit
1bdaa54d40
3 files changed
+26
-1
No files matched your search
@@ -28,6 +28,21 @@
|
||||
available at http://developer.intel.com
|
||||
*/
|
||||
|
||||
/*
|
||||
AMD Opteron processors don't follow the Intel VRM spec.
|
||||
I'm going to "make up" 2.4 as the VRM spec for the Opterons.
|
||||
No good reason just a mnemonic for the 24x Opteron processor
|
||||
series
|
||||
|
||||
Opteron VID encoding is:
|
||||
|
||||
00000 = 1.550 V
|
||||
00001 = 1.525 V
|
||||
. . . .
|
||||
11110 = 0.800 V
|
||||
11111 = 0.000 V (off)
|
||||
*/
|
||||
|
||||
/*
|
||||
Legal val values 00 - 1F.
|
||||
vrm is the Intel VRM document version.
|
||||
@@ -41,6 +56,9 @@ static inline int vid_from_reg(int val, int vrm)
|
||||
{
|
||||
switch(vrm) {
|
||||
|
||||
case 24: /* Opteron processor */
|
||||
return(val == 0x1f ? 0 : 1550 - val * 25);
|
||||
|
||||
case 91: /* VRM 9.1 */
|
||||
case 90: /* VRM 9.0 */
|
||||
return(val == 0x1f ? 0 :
|
||||
|
||||
Reference in new issue
Block a user