Skip to content

Commit

Permalink
Add NCT6799D (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorys89 committed May 23, 2023
1 parent bd8f103 commit aa6a249
Show file tree
Hide file tree
Showing 2 changed files with 24 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 @@ -1307,6 +1307,24 @@ class Device_0xD428 final : public GeneratedNuvotonDevice_10 {

};

class Device_0xD802 final : public GeneratedNuvotonDevice_10 {
public:
static SuperIODevice *createDevice(uint16_t deviceId) {
if (deviceId == 0xD802)
return new Device_0xD802();
return nullptr;
}

uint8_t getLdn() override {
return 0x0B;
}

const char* getModelName() override {
return "Nuvoton NCT6799D";
}

};

class Device_0xD42A final : public GeneratedNuvotonDevice_10 {
public:
static SuperIODevice *createDevice(uint16_t deviceId) {
Expand Down
6 changes: 6 additions & 0 deletions Sensors/SMCSuperIO/Resources/NCT6796D-9BD.plist
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
<key>DeviceID</key>
<integer>54312</integer>
</dict>
<dict>
<key>DisplayName</key>
<string>Nuvoton NCT6799D</string>
<key>DeviceID</key>
<integer>55298</integer>
</dict>
<dict>
<key>DisplayName</key>
<string>Nuvoton NCT6796D-E</string>
Expand Down

0 comments on commit aa6a249

Please sign in to comment.