summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Craciunescu <nix.or.die@googlemail.com>2020-12-23 03:53:15 +0300
committerGuenter Roeck <linux@roeck-us.net>2021-01-28 04:44:18 +0300
commitc8d0d3fa946976c6bc69589375d7d063f0cb1492 (patch)
tree01372cbf93489d45d1f14efac05a1394175b85c3
parentd349626b42f5dbd08ffcb3f2c383b1f6f433b3c1 (diff)
downloadlinux-c8d0d3fa946976c6bc69589375d7d063f0cb1492.tar.xz
hwmon: (k10temp) Zen3 Ryzen Desktop CPUs support
The module has only support for Zen3 server CPUs right now. Add support for Family 0x19, model 0x21 which are Zen3 Ryzen Desktop CPUs. Tested on 5800x, 5900x and 5950x CPUs. Signed-off-by: Gabriel Craciunescu <nix.or.die@gmail.com> Link: https://lore.kernel.org/r/20201223005315.20077-1-nix.or.die@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
-rw-r--r--drivers/hwmon/k10temp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c
index 3bc2551577a3..5ff3669c2b60 100644
--- a/drivers/hwmon/k10temp.c
+++ b/drivers/hwmon/k10temp.c
@@ -448,7 +448,8 @@ static int k10temp_probe(struct pci_dev *pdev, const struct pci_device_id *id)
data->is_zen = true;
switch (boot_cpu_data.x86_model) {
- case 0x0 ... 0x1: /* Zen3 */
+ case 0x0 ... 0x1: /* Zen3 SP3/TR */
+ case 0x21: /* Zen3 Ryzen Desktop */
k10temp_get_ccd_support(pdev, data, 8);
break;
}