hwmon: (nct6683) Support ASRock boards
authorBlaž Hrastnik <blaz@mxxn.io>
Tue, 19 Jan 2021 05:12:41 +0000 (14:12 +0900)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 28 Jan 2021 01:44:18 +0000 (17:44 -0800)
Tested with ASRock X570 Phantom Gaming-ITX/TB3. It also appears
on other ASRock boards.

Signed-off-by: Blaž Hrastnik <blaz@mxxn.io>
Link: https://lore.kernel.org/r/b08d641c-3fb5-4845-85f7-e1753149cd7d@www.fastmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/hwmon/nct6683.rst
drivers/hwmon/nct6683.c

index 8646ad5..2e1408d 100644 (file)
@@ -61,5 +61,6 @@ Board         Firmware version
 Intel DH87RL   NCT6683D EC firmware version 1.0 build 04/03/13
 Intel DH87MC   NCT6683D EC firmware version 1.0 build 04/03/13
 Intel DB85FL   NCT6683D EC firmware version 1.0 build 04/03/13
+ASRock X570    NCT6683D EC firmware version 1.0 build 06/28/19
 MSI B550       NCT6687D EC firmware version 1.0 build 05/07/20
 =============== ===============================================
index 7f7e30f..a23047a 100644 (file)
@@ -169,6 +169,7 @@ superio_exit(int ioreg)
 #define NCT6683_CUSTOMER_ID_INTEL      0x805
 #define NCT6683_CUSTOMER_ID_MITAC      0xa0e
 #define NCT6683_CUSTOMER_ID_MSI                0x201
+#define NCT6683_CUSTOMER_ID_ASROCK             0xe2c
 
 #define NCT6683_REG_BUILD_YEAR         0x604
 #define NCT6683_REG_BUILD_MONTH                0x605
@@ -1225,6 +1226,8 @@ static int nct6683_probe(struct platform_device *pdev)
                break;
        case NCT6683_CUSTOMER_ID_MSI:
                break;
+       case NCT6683_CUSTOMER_ID_ASROCK:
+               break;
        default:
                if (!force)
                        return -ENODEV;