From cdc38ff344e18ecb17e6eb0353b4cfc5012f2d7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=B6ller?= Date: Tue, 2 Aug 2011 21:05:17 +0000 Subject: [PATCH] Added initial support for the ITE IT8772E super I/O chip. --- Hardware/LPC/Chip.cs | 2 ++ Hardware/LPC/IT87XX.cs | 8 +++++--- Hardware/LPC/LPCIO.cs | 1 + Hardware/Mainboard/Mainboard.cs | 2 +- Hardware/Mainboard/Manufacturer.cs | 1 + Hardware/Mainboard/Model.cs | 1 - Hardware/Mainboard/SMBIOS.cs | 4 +++- Hardware/Mainboard/SuperIOHardware.cs | 3 ++- 8 files changed, 15 insertions(+), 7 deletions(-) diff --git a/Hardware/LPC/Chip.cs b/Hardware/LPC/Chip.cs index f0430f8..af20b9d 100644 --- a/Hardware/LPC/Chip.cs +++ b/Hardware/LPC/Chip.cs @@ -57,6 +57,7 @@ namespace OpenHardwareMonitor.Hardware.LPC { IT8721F = 0x8721, IT8726F = 0x8726, IT8728F = 0x8728, + IT8772E = 0x8772, NCT6771F = 0xB470, NCT6776F = 0xC330, @@ -94,6 +95,7 @@ namespace OpenHardwareMonitor.Hardware.LPC { case Chip.IT8721F: return "ITE IT8721F"; case Chip.IT8726F: return "ITE IT8726F"; case Chip.IT8728F: return "ITE IT8728F"; + case Chip.IT8772E: return "ITE IT8772E"; case Chip.NCT6771F: return "Nuvoton NCT6771F"; case Chip.NCT6776F: return "Nuvoton NCT6776F"; diff --git a/Hardware/LPC/IT87XX.cs b/Hardware/LPC/IT87XX.cs index 7f967cf..94c2a40 100644 --- a/Hardware/LPC/IT87XX.cs +++ b/Hardware/LPC/IT87XX.cs @@ -16,7 +16,7 @@ The Initial Developer of the Original Code is Michael Möller . - Portions created by the Initial Developer are Copyright (C) 2009-2010 + Portions created by the Initial Developer are Copyright (C) 2009-2011 the Initial Developer. All Rights Reserved. Contributor(s): @@ -128,8 +128,9 @@ namespace OpenHardwareMonitor.Hardware.LPC { temperatures = new float?[3]; fans = new float?[5]; - // The IT8721F uses a 12mV resultion ADC, all others 16mV - if (chip == Chip.IT8721F || chip == Chip.IT8728F) { + // IT8721F, IT8728F and IT8772E uses a 12mV resultion ADC, all others 16mV + if (chip == Chip.IT8721F || chip == Chip.IT8728F || chip == Chip.IT8772E) + { voltageGain = 0.012f; } else { voltageGain = 0.016f; @@ -155,6 +156,7 @@ namespace OpenHardwareMonitor.Hardware.LPC { gpioCount = 8; break; case Chip.IT8728F: + case Chip.IT8772E: gpioCount = 0; break; } diff --git a/Hardware/LPC/LPCIO.cs b/Hardware/LPC/LPCIO.cs index 240261e..be5aec9 100644 --- a/Hardware/LPC/LPCIO.cs +++ b/Hardware/LPC/LPCIO.cs @@ -364,6 +364,7 @@ namespace OpenHardwareMonitor.Hardware.LPC { case 0x8721: chip = Chip.IT8721F; break; case 0x8726: chip = Chip.IT8726F; break; case 0x8728: chip = Chip.IT8728F; break; + case 0x8772: chip = Chip.IT8772E; break; default: chip = Chip.Unknown; break; } if (chip == Chip.Unknown) { diff --git a/Hardware/Mainboard/Mainboard.cs b/Hardware/Mainboard/Mainboard.cs index 6267ec7..808c217 100644 --- a/Hardware/Mainboard/Mainboard.cs +++ b/Hardware/Mainboard/Mainboard.cs @@ -85,7 +85,7 @@ namespace OpenHardwareMonitor.Hardware.Mainboard { superIOHardware[i] = new SuperIOHardware(this, superIO[i], smbios.Board != null ? smbios.Board.Manufacturer : Manufacturer.Unknown, smbios.Board != null ? smbios.Board.Model : - Model.Unknown, settings); + Model.Unknown, settings); } public string Name { diff --git a/Hardware/Mainboard/Manufacturer.cs b/Hardware/Mainboard/Manufacturer.cs index 7180d35..9c732f1 100644 --- a/Hardware/Mainboard/Manufacturer.cs +++ b/Hardware/Mainboard/Manufacturer.cs @@ -55,6 +55,7 @@ namespace OpenHardwareMonitor.Hardware.Mainboard { Intel, Lenovo, MSI, + Shuttle, Supermicro, Toshiba, XFX, diff --git a/Hardware/Mainboard/Model.cs b/Hardware/Mainboard/Model.cs index 2be4f8c..c827952 100644 --- a/Hardware/Mainboard/Model.cs +++ b/Hardware/Mainboard/Model.cs @@ -61,7 +61,6 @@ namespace OpenHardwareMonitor.Hardware.Mainboard { LP_DK_P55_T3eH9, // ECS - A890GXM_A, // EVGA diff --git a/Hardware/Mainboard/SMBIOS.cs b/Hardware/Mainboard/SMBIOS.cs index 27379f5..49f1498 100644 --- a/Hardware/Mainboard/SMBIOS.cs +++ b/Hardware/Mainboard/SMBIOS.cs @@ -311,7 +311,9 @@ namespace OpenHardwareMonitor.Hardware.Mainboard { case "MICRO-STAR INTERNATIONAL CO., LTD": case "MICRO-STAR INTERNATIONAL CO.,LTD": case "MSI": - return Manufacturer.MSI; + return Manufacturer.MSI; + case "Shuttle": + return Manufacturer.Shuttle; case "Supermicro": return Manufacturer.Supermicro; case "TOSHIBA": diff --git a/Hardware/Mainboard/SuperIOHardware.cs b/Hardware/Mainboard/SuperIOHardware.cs index 30fe096..e4fdce9 100644 --- a/Hardware/Mainboard/SuperIOHardware.cs +++ b/Hardware/Mainboard/SuperIOHardware.cs @@ -89,7 +89,7 @@ namespace OpenHardwareMonitor.Hardware.Mainboard { case Chip.IT8716F: case Chip.IT8718F: case Chip.IT8720F: - case Chip.IT8726F: + case Chip.IT8726F: switch (manufacturer) { case Manufacturer.ASUS: switch (model) { @@ -426,6 +426,7 @@ namespace OpenHardwareMonitor.Hardware.Mainboard { case Chip.IT8721F: case Chip.IT8728F: + case Chip.IT8772E: switch (manufacturer) { case Manufacturer.ECS: switch (model) {