hwmon: (k10temp) Add support for Zen5 Ryzen Desktop

Add support for retrieving CCD temperatures on Zen5 (Granite Ridge)
Desktop CPUs.

Signed-off-by: David Hows <david@hows.id.au>
Link: https://lore.kernel.org/r/Z-21SQkZpuWiWK06@archibald.hows.id.au
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
David Hows 2025-04-03 09:08:09 +11:00 committed by Guenter Roeck
parent cd17587272
commit 2c183963fb

View File

@ -503,6 +503,13 @@ static int k10temp_probe(struct pci_dev *pdev, const struct pci_device_id *id)
k10temp_get_ccd_support(data, 12);
break;
}
} else if (boot_cpu_data.x86 == 0x1a) {
switch (boot_cpu_data.x86_model) {
case 0x40 ... 0x4f: /* Zen5 Ryzen Desktop */
data->ccd_offset = 0x308;
k10temp_get_ccd_support(data, 8);
break;
}
}
for (i = 0; i < ARRAY_SIZE(tctl_offset_table); i++) {