mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 23:52:08 +02:00
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:
parent
cd17587272
commit
2c183963fb
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user