From 395b464a30154e82f58c7d501b7d9272de22e5a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=B6ller?= Date: Thu, 16 Feb 2012 22:10:30 +0000 Subject: [PATCH] Added experimental support for ITE IT8771E super I/O chips. --- Hardware/LPC/Chip.cs | 4 +++- Hardware/LPC/IT87XX.cs | 8 +++++--- Hardware/LPC/LPCIO.cs | 3 ++- Hardware/Mainboard/SuperIOHardware.cs | 1 + 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Hardware/LPC/Chip.cs b/Hardware/LPC/Chip.cs index af20b9d..3830668 100644 --- a/Hardware/LPC/Chip.cs +++ b/Hardware/LPC/Chip.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-2011 + Portions created by the Initial Developer are Copyright (C) 2009-2012 the Initial Developer. All Rights Reserved. Contributor(s): @@ -57,6 +57,7 @@ namespace OpenHardwareMonitor.Hardware.LPC { IT8721F = 0x8721, IT8726F = 0x8726, IT8728F = 0x8728, + IT8771E = 0x8771, IT8772E = 0x8772, NCT6771F = 0xB470, @@ -95,6 +96,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.IT8771E: return "ITE IT8771E"; case Chip.IT8772E: return "ITE IT8772E"; case Chip.NCT6771F: return "Nuvoton NCT6771F"; diff --git a/Hardware/LPC/IT87XX.cs b/Hardware/LPC/IT87XX.cs index 6897d83..09df4d3 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-2011 + Portions created by the Initial Developer are Copyright (C) 2009-2012 the Initial Developer. All Rights Reserved. Contributor(s): @@ -102,7 +102,7 @@ namespace OpenHardwareMonitor.Hardware.LPC { return; Ring0.WriteIoPort((ushort)(gpioAddress + index), value); - } + } public void SetControl(int index, byte? value) { } @@ -132,7 +132,8 @@ namespace OpenHardwareMonitor.Hardware.LPC { fans = new float?[5]; // IT8721F, IT8728F and IT8772E use a 12mV resultion ADC, all others 16mV - if (chip == Chip.IT8721F || chip == Chip.IT8728F || chip == Chip.IT8772E) + if (chip == Chip.IT8721F || chip == Chip.IT8728F || chip == Chip.IT8771E + || chip == Chip.IT8772E) { voltageGain = 0.012f; } else { @@ -159,6 +160,7 @@ namespace OpenHardwareMonitor.Hardware.LPC { gpioCount = 8; break; case Chip.IT8728F: + case Chip.IT8771E: case Chip.IT8772E: gpioCount = 0; break; diff --git a/Hardware/LPC/LPCIO.cs b/Hardware/LPC/LPCIO.cs index be5aec9..f42b119 100644 --- a/Hardware/LPC/LPCIO.cs +++ b/Hardware/LPC/LPCIO.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-2011 + Portions created by the Initial Developer are Copyright (C) 2009-2012 the Initial Developer. All Rights Reserved. Contributor(s): @@ -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 0x8771: chip = Chip.IT8771E; break; case 0x8772: chip = Chip.IT8772E; break; default: chip = Chip.Unknown; break; } diff --git a/Hardware/Mainboard/SuperIOHardware.cs b/Hardware/Mainboard/SuperIOHardware.cs index c91d5a6..bee5f42 100644 --- a/Hardware/Mainboard/SuperIOHardware.cs +++ b/Hardware/Mainboard/SuperIOHardware.cs @@ -430,6 +430,7 @@ namespace OpenHardwareMonitor.Hardware.Mainboard { case Chip.IT8721F: case Chip.IT8728F: + case Chip.IT8771E: case Chip.IT8772E: switch (manufacturer) { case Manufacturer.ECS: