summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/k10temp.c
diff options
context:
space:
mode:
authorGabriel Craciunescu <nix.or.die@googlemail.com>2020-12-23 01:53:15 +0100
committerGuenter Roeck <linux@roeck-us.net>2021-01-28 02:44:18 +0100
commitc8d0d3fa946976c6bc69589375d7d063f0cb1492 (patch)
tree01372cbf93489d45d1f14efac05a1394175b85c3 /drivers/hwmon/k10temp.c
parenthwmon: (abx500) Decomission abx500 driver (diff)
downloadlinux-c8d0d3fa946976c6bc69589375d7d063f0cb1492.tar.xz
linux-c8d0d3fa946976c6bc69589375d7d063f0cb1492.zip
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>
Diffstat (limited to 'drivers/hwmon/k10temp.c')
-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;
}