From a50049e63be9c7e5c8edc1813799b1b8000c05e0 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Sat, 4 Apr 2020 18:41:38 -0500 Subject: [PATCH] Add NCT6798D to Super-IO list in Windows --- OpenRGB.cpp | 4 ++++ super_io/super_io.h | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/OpenRGB.cpp b/OpenRGB.cpp index 27d4810d..1e9aa251 100644 --- a/OpenRGB.cpp +++ b/OpenRGB.cpp @@ -57,6 +57,7 @@ void DetectNuvotonI2CBusses() case SIO_NCT6102_ID: case SIO_NCT6793_ID: case SIO_NCT6796_ID: + case SIO_NCT6798_ID: bus = new i2c_smbus_nct6775(); // Set logical device register to get SMBus base address @@ -81,6 +82,9 @@ void DetectNuvotonI2CBusses() case SIO_NCT6796_ID: sprintf(bus->device_name, "Nuvoton NCT6796D SMBus at %X", smba); break; + case SIO_NCT6798_ID: + sprintf(bus->device_name, "Nuvoton NCT6798D SMBus at %X", smba); + break; } busses.push_back(bus); diff --git a/super_io/super_io.h b/super_io/super_io.h index bd2b8c7d..51614ab0 100644 --- a/super_io/super_io.h +++ b/super_io/super_io.h @@ -18,6 +18,7 @@ #define SIO_NCT6795_ID 0xd350 /* Device ID for NCT6795D (D350) */ #define SIO_NCT6796_ID 0xd420 /* Device ID for NCT6796D (D421) */ #define SIO_NCT6797_ID 0xd450 /* Device ID for NCT6797D (D450) */ +#define SIO_NCT6798_ID 0xd428 /* Device ID for NCT6798D (D428) */ #define SIO_REG_LOGDEV 0x07 /* Logical Device Register */ #define SIO_REG_DEVID 0x20 /* Device ID Register */ #define SIO_REG_SMBA 0x62 /* SMBus Base Address Register */ @@ -28,4 +29,4 @@ void superio_enter(int ioreg); void superio_outb(int ioreg, int reg, int val); -int superio_inb(int ioreg, int reg); \ No newline at end of file +int superio_inb(int ioreg, int reg);