Skip to content

Commit

Permalink
Added ITE 8638 support (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmd2001 authored Dec 3, 2024
1 parent c6da306 commit bcde251
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Sensors/SMCSuperIO/Devices.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,24 @@ class Device_0x8628 final : public GeneratedITEDevice_6 {

};

class Device_0x8638 final : public GeneratedITEDevice_6 {
public:
static SuperIODevice *createDevice(uint16_t deviceId) {
if (deviceId == 0x8638)
return new Device_0x8638();
return nullptr;
}

uint8_t getLdn() override {
return 0x04;
}

const char* getModelName() override {
return "ITE IT8638";
}

};

class Device_0x8686 final : public GeneratedITEDevice_6 {
public:
static SuperIODevice *createDevice(uint16_t deviceId) {
Expand Down
1 change: 1 addition & 0 deletions Sensors/SMCSuperIO/ITEDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ namespace ITE {
} else {
if (strcmp(detectedDevice->getModelName(), "ITE IT8721F") || strcmp(detectedDevice->getModelName(), "ITE IT8728F") || strcmp(detectedDevice->getModelName(), "ITE IT8665E") || strcmp(detectedDevice->getModelName(), "ITE IT8686E") || strcmp(detectedDevice->getModelName(), "ITE IT8688E") || strcmp(detectedDevice->getModelName(), "ITE IT8689E") ||
strcmp(detectedDevice->getModelName(), "ITE IT8795E") || strcmp(detectedDevice->getModelName(), "ITE IT8628E") ||
strcmp(detectedDevice->getModelName(), "ITE IT8638") ||
strcmp(detectedDevice->getModelName(), "ITE IT8625E") || strcmp(detectedDevice->getModelName(), "ITE IT8620E") ||
strcmp(detectedDevice->getModelName(), "ITE IT8613E") || strcmp(detectedDevice->getModelName(), "ITE IT8792E") ||
strcmp(detectedDevice->getModelName(), "ITE IT8655E") || strcmp(detectedDevice->getModelName(), "ITE IT8631E"))
Expand Down
6 changes: 6 additions & 0 deletions Sensors/SMCSuperIO/Resources/IT8721F.plist
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
<key>DeviceID</key>
<integer>0x8628</integer>
</dict>
<dict>
<key>DisplayName</key>
<string>ITE IT8638</string>
<key>DeviceID</key>
<integer>0x8638</integer>
</dict>
<dict>
<key>DisplayName</key>
<string>ITE IT8686E</string>
Expand Down

0 comments on commit bcde251

Please sign in to comment.