Added PCI Dev IDS for Model 60 (Ryzen 4000 APUs)

This commit is contained in:
Ondrej Čerman 2020-06-14 21:54:57 +02:00
parent 86f79621b0
commit 5e2f56fabe
2 changed files with 11 additions and 2 deletions

View file

@ -1,4 +1,4 @@
VERSION := 0.1.11
VERSION := 0.1.12
TARGET := $(shell uname -r)
DKMS_ROOT_PATH := /usr/src/zenpower-$(VERSION)

View file

@ -38,7 +38,7 @@
MODULE_DESCRIPTION("AMD ZEN family CPU Sensors Driver");
MODULE_AUTHOR("Ondrej Čerman");
MODULE_LICENSE("GPL");
MODULE_VERSION("0.1.11");
MODULE_VERSION("0.1.12");
#ifndef PCI_DEVICE_ID_AMD_17H_DF_F3
@ -53,6 +53,10 @@ MODULE_VERSION("0.1.11");
#define PCI_DEVICE_ID_AMD_17H_M30H_DF_F3 0x1493
#endif
#ifndef PCI_DEVICE_ID_AMD_17H_M60H_DF_F3
#define PCI_DEVICE_ID_AMD_17H_M60H_DF_F3 0x144b
#endif
#ifndef PCI_DEVICE_ID_AMD_17H_M70H_DF_F3
#define PCI_DEVICE_ID_AMD_17H_M70H_DF_F3 0x1443
#endif
@ -598,6 +602,10 @@ static int zenpower_probe(struct pci_dev *pdev, const struct pci_device_id *id)
ccd_check = 8;
break;
case 0x60: // Zen2 APU
data->zen2 = true;
break;
case 0x71: // Zen2 Ryzen
data->zen2 = true;
data->amps_visible = true;
@ -642,6 +650,7 @@ static const struct pci_device_id zenpower_id_table[] = {
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_17H_DF_F3) },
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_17H_M10H_DF_F3) },
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_17H_M30H_DF_F3) },
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_17H_M60H_DF_F3) },
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_17H_M70H_DF_F3) },
{}
};