From d77bf5d686e5074d29f65b4537e4ad1c5675886c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=B6ller?= Date: Fri, 19 Feb 2010 18:33:08 +0000 Subject: [PATCH] Added support for Winbond W83627THF super I/O chip. --- Hardware/LPC/Chip.cs | 3 ++- Hardware/LPC/LPCGroup.cs | 8 ++++++++ Hardware/LPC/LPCHardware.cs | 1 + Hardware/LPC/W836XX.cs | 7 ++++--- Properties/AssemblyInfo.cs | 4 ++-- 5 files changed, 17 insertions(+), 6 deletions(-) diff --git a/Hardware/LPC/Chip.cs b/Hardware/LPC/Chip.cs index ca9a4cd..aef1f0a 100644 --- a/Hardware/LPC/Chip.cs +++ b/Hardware/LPC/Chip.cs @@ -13,8 +13,9 @@ namespace OpenHardwareMonitor.Hardware.LPC { IT8726F = 0x8726, W83627DHG = 0xA020, W83627DHGP = 0xB070, - W83627EHF = 0x8860, + W83627EHF = 0x8860, W83627HF = 0x5200, + W83627THF = 0x8283, W83667HG = 0xA510, W83667HGB = 0xB350, F71862 = 0x0601, diff --git a/Hardware/LPC/LPCGroup.cs b/Hardware/LPC/LPCGroup.cs index 5101fce..882b770 100644 --- a/Hardware/LPC/LPCGroup.cs +++ b/Hardware/LPC/LPCGroup.cs @@ -160,6 +160,13 @@ namespace OpenHardwareMonitor.Hardware.LPC { logicalDeviceNumber = WINBOND_HARDWARE_MONITOR_LDN; break; } break; + case 0x82: + switch (revision) { + case 0x83: + chip = Chip.W83627THF; + logicalDeviceNumber = WINBOND_HARDWARE_MONITOR_LDN; + break; + } break; case 0x88: switch (revision & 0xF0) { case 0x60: @@ -217,6 +224,7 @@ namespace OpenHardwareMonitor.Hardware.LPC { case Chip.W83627DHGP: case Chip.W83627EHF: case Chip.W83627HF: + case Chip.W83627THF: case Chip.W83667HG: case Chip.W83667HGB: W836XX w836XX = new W836XX(chip, revision, address); diff --git a/Hardware/LPC/LPCHardware.cs b/Hardware/LPC/LPCHardware.cs index 52e7b1e..052500a 100644 --- a/Hardware/LPC/LPCHardware.cs +++ b/Hardware/LPC/LPCHardware.cs @@ -63,6 +63,7 @@ namespace OpenHardwareMonitor.Hardware.LPC { case Chip.W83627DHGP: this.name = "Winbond W83627DHG-P"; break; case Chip.W83627EHF: this.name = "Winbond W83627EHF"; break; case Chip.W83627HF: this.name = "Winbond W83627HF"; break; + case Chip.W83627THF: this.name = "Winbond W83627THF"; break; case Chip.W83667HG: this.name = "Winbond W83667HG"; break; case Chip.W83667HGB: this.name = "Winbond W83667HG-B"; break; } diff --git a/Hardware/LPC/W836XX.cs b/Hardware/LPC/W836XX.cs index e2566db..1f8be64 100644 --- a/Hardware/LPC/W836XX.cs +++ b/Hardware/LPC/W836XX.cs @@ -65,7 +65,7 @@ namespace OpenHardwareMonitor.Hardware.LPC { // Hardware Monitor Registers private const byte VOLTAGE_BASE_REG = 0x20; - private const byte BANK_SELECT_REGISTER = 0x04E; + private const byte BANK_SELECT_REGISTER = 0x4E; private const byte VENDOR_ID_REGISTER = 0x4F; private const byte TEMPERATURE_BASE_REG = 0x50; private const byte TEMPERATURE_SYS_REG = 0x27; @@ -115,8 +115,9 @@ namespace OpenHardwareMonitor.Hardware.LPC { voltages[1] = new Sensor("+3.3V", 3, SensorType.Voltage, this); voltages[2] = new Sensor("Battery", 7, SensorType.Voltage, this); break; - case Chip.W83627HF: - fanNames = new string[] { "Fan #1", "Fan #2", "Fan #3" }; + case Chip.W83627HF: + case Chip.W83627THF: + fanNames = new string[] { "System", "CPU", "Auxiliary" }; voltageGains = new float[] { 2, 1, 2, 1, 1, 1, 1, 2 }; voltages = new Sensor[3]; voltages[0] = new Sensor("CPU VCore", 0, SensorType.Voltage, this); diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 3a34a85..c8f85a7 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -69,5 +69,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.1.21.4")] -[assembly: AssemblyFileVersion("0.1.21.4")] +[assembly: AssemblyVersion("0.1.22.0")] +[assembly: AssemblyFileVersion("0.1.22.0")]