mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-08-31 14:25:16 +00:00
Fixed Issue 97.
This commit is contained in:
@@ -11,6 +11,7 @@ namespace OpenHardwareMonitor.Hardware.LPC {
|
||||
IT8716F = 0x8716,
|
||||
IT8718F = 0x8718,
|
||||
IT8720F = 0x8720,
|
||||
IT8721F = 0x8721,
|
||||
IT8726F = 0x8726,
|
||||
W83627DHG = 0xA020,
|
||||
W83627DHGP = 0xB070,
|
||||
@@ -43,6 +44,7 @@ namespace OpenHardwareMonitor.Hardware.LPC {
|
||||
case Chip.IT8712F: return "ITE IT8712F";
|
||||
case Chip.IT8716F: return "ITE IT8716F";
|
||||
case Chip.IT8718F: return "ITE IT8718F";
|
||||
case Chip.IT8721F: return "ITE IT8721F";
|
||||
case Chip.IT8720F: return "ITE IT8720F";
|
||||
case Chip.IT8726F: return "ITE IT8726F";
|
||||
case Chip.W83627DHG: return "Winbond W83627DHG";
|
||||
|
@@ -54,6 +54,8 @@ namespace OpenHardwareMonitor.Hardware.LPC {
|
||||
private float?[] temperatures = new float?[0];
|
||||
private float?[] fans = new float?[0];
|
||||
|
||||
private readonly float voltageGain;
|
||||
|
||||
// Consts
|
||||
private const byte ITE_VENDOR_ID = 0x90;
|
||||
|
||||
@@ -102,6 +104,13 @@ namespace OpenHardwareMonitor.Hardware.LPC {
|
||||
voltages = new float?[9];
|
||||
temperatures = new float?[3];
|
||||
fans = new float?[5];
|
||||
|
||||
// The IT8721F uses a 12mV resultion ADC, all others 16mV
|
||||
if (chip == Chip.IT8721F) {
|
||||
voltageGain = 0.012f;
|
||||
} else {
|
||||
voltageGain = 0.016f;
|
||||
}
|
||||
}
|
||||
|
||||
public Chip Chip { get { return chip; } }
|
||||
@@ -156,8 +165,10 @@ namespace OpenHardwareMonitor.Hardware.LPC {
|
||||
|
||||
for (int i = 0; i < voltages.Length; i++) {
|
||||
bool valid;
|
||||
float value = 0.001f * ((int)ReadByte(
|
||||
(byte)(VOLTAGE_BASE_REG + i), out valid) << 4);
|
||||
|
||||
float value =
|
||||
voltageGain * ReadByte((byte)(VOLTAGE_BASE_REG + i), out valid);
|
||||
|
||||
if (!valid)
|
||||
continue;
|
||||
if (value > 0)
|
||||
|
@@ -334,6 +334,7 @@ namespace OpenHardwareMonitor.Hardware.LPC {
|
||||
case 0x8716: chip = Chip.IT8716F; break;
|
||||
case 0x8718: chip = Chip.IT8718F; break;
|
||||
case 0x8720: chip = Chip.IT8720F; break;
|
||||
case 0x8721: chip = Chip.IT8721F; break;
|
||||
case 0x8726: chip = Chip.IT8726F; break;
|
||||
default: chip = Chip.Unknown; break;
|
||||
}
|
||||
|
@@ -320,6 +320,22 @@ namespace OpenHardwareMonitor.Hardware.Mainboard {
|
||||
}
|
||||
break;
|
||||
|
||||
case Chip.IT8721F:
|
||||
v.Add(new Voltage("Voltage #1", 0, true));
|
||||
v.Add(new Voltage("Voltage #2", 1, true));
|
||||
v.Add(new Voltage("Voltage #3", 2, true));
|
||||
v.Add(new Voltage("Analog +3.3V", 3, 10, 10, 0, true));
|
||||
v.Add(new Voltage("Voltage #5", 4, true));
|
||||
v.Add(new Voltage("Voltage #6", 5, true));
|
||||
v.Add(new Voltage("Voltage #7", 6, true));
|
||||
v.Add(new Voltage("Standby +3.3V", 7, 10, 10, 0, true));
|
||||
v.Add(new Voltage("VBat", 8, 10, 10, 0));
|
||||
for (int i = 0; i < superIO.Temperatures.Length; i++)
|
||||
t.Add(new Temperature("Temperature #" + (i + 1), i));
|
||||
for (int i = 0; i < superIO.Fans.Length; i++)
|
||||
f.Add(new Fan("Fan #" + (i + 1), i));
|
||||
break;
|
||||
|
||||
case Chip.F71858:
|
||||
v.Add(new Voltage("VCC3V", 0, 150, 150, 0));
|
||||
v.Add(new Voltage("VSB3V", 1, 150, 150, 0));
|
||||
|
Reference in New Issue
Block a user