From 938c36c3dc5d16a7dc0545103754542ab3a67f5c Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sat, 25 Sep 2021 20:04:32 -0500 Subject: WIP: #2 add Cezanne support --- zenpower.c | 8 ++++++++ zenpower.mod | 2 ++ 2 files changed, 10 insertions(+) create mode 100644 zenpower.mod diff --git a/zenpower.c b/zenpower.c index 574248a..0ab72d5 100644 --- a/zenpower.c +++ b/zenpower.c @@ -677,6 +677,14 @@ static int zenpower_probe(struct pci_dev *pdev, const struct pci_device_id *id) data->svi_soc_addr = F19H_M21H_SVI_TEL_PLANE1; ccd_check = 2; /* max 16C, 8C per CCD = max 2 CCD's */ break; + case 0x50: /* Zen3 APU */ + if (!zen1_calc) { + data->zen2 = true; + dev_info(dev, "using ZEN2 calculation formula.\n"); + } else { + dev_info(dev, "using ZEN1 calculation formula.\n"); + } + break; } } else { data->svi_core_addr = F17H_M01H_SVI_TEL_PLANE0; diff --git a/zenpower.mod b/zenpower.mod new file mode 100644 index 0000000..2426811 --- /dev/null +++ b/zenpower.mod @@ -0,0 +1,2 @@ +/home/ta180m/git/zenpower3/zenpower.o + -- cgit v1.2.3-70-g09d2