Commit 2c183963 authored by David Hows's avatar David Hows Committed by Guenter Roeck
Browse files

hwmon: (k10temp) Add support for Zen5 Ryzen Desktop



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

Signed-off-by: default avatarDavid Hows <david@hows.id.au>
Link: https://lore.kernel.org/r/Z-21SQkZpuWiWK06@archibald.hows.id.au


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent cd175872
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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++) {