Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added experimental support for the chip ITE IT8686E. #1137

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions Hardware/LPC/Chip.cs
Expand Up @@ -27,6 +27,7 @@ internal enum Chip : ushort {

IT8620E = 0x8620,
IT8628E = 0x8628,
IT8686E = 0x8686,
IT8705F = 0x8705,
IT8712F = 0x8712,
IT8716F = 0x8716,
Expand Down Expand Up @@ -74,6 +75,7 @@ internal class ChipName {

case Chip.IT8620E: return "ITE IT8620E";
case Chip.IT8628E: return "ITE IT8628E";
case Chip.IT8686E: return "ITE IT8686E";
case Chip.IT8705F: return "ITE IT8705F";
case Chip.IT8712F: return "ITE IT8712F";
case Chip.IT8716F: return "ITE IT8716F";
Expand Down
11 changes: 9 additions & 2 deletions Hardware/LPC/IT87XX.cs
Expand Up @@ -139,14 +139,15 @@ internal class IT87XX : ISuperIO {
return;

voltages = new float?[9];
temperatures = new float?[3];
temperatures = new float?[chip == Chip.IT8686E ? 6 : 3];
fans = new float?[chip == Chip.IT8705F ? 3 : 5];
controls = new float?[3];

// IT8620E, IT8628E, IT8721F, IT8728F and IT8772E use a 12mV resultion
// ADC, all others 16mV
if (chip == Chip.IT8620E || chip == Chip.IT8628E || chip == Chip.IT8721F
|| chip == Chip.IT8728F || chip == Chip.IT8771E || chip == Chip.IT8772E)
|| chip == Chip.IT8728F || chip == Chip.IT8771E || chip == Chip.IT8772E
|| chip == Chip.IT8686E )
{
voltageGain = 0.012f;
} else {
Expand Down Expand Up @@ -182,6 +183,12 @@ internal class IT87XX : ISuperIO {
case Chip.IT8772E:
gpioCount = 0;
break;
case Chip.IT8686E:
// This is probably wrong number of GPIO. I don't have access to a datasheet
// for the IT8686E chip so I'm unable to determine the number of GPIO.
// Thus setting it to 0 to avoid any other part of the code trying to read from GPIO
gpioCount = 0;
break;
}
}

Expand Down
1 change: 1 addition & 0 deletions Hardware/LPC/LPCIO.cs
Expand Up @@ -333,6 +333,7 @@ internal class LPCIO {
switch (chipID) {
case 0x8620: chip = Chip.IT8620E; break;
case 0x8628: chip = Chip.IT8628E; break;
case 0x8686: chip = Chip.IT8686E; break;
case 0x8705: chip = Chip.IT8705F; break;
case 0x8712: chip = Chip.IT8712F; break;
case 0x8716: chip = Chip.IT8716F; break;
Expand Down