svn commit: r358148 - stable/12/sys/dev/amdpm
Konstantin Belousov
kib at FreeBSD.org
Thu Feb 20 01:41:13 UTC 2020
Author: kib
Date: Thu Feb 20 01:41:12 2020
New Revision: 358148
URL: https://svnweb.freebsd.org/changeset/base/358148
Log:
MFC r357868:
amdpm: Add Hygon Dhyana support.
Modified:
stable/12/sys/dev/amdpm/amdpm.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/dev/amdpm/amdpm.c
==============================================================================
--- stable/12/sys/dev/amdpm/amdpm.c Thu Feb 20 01:39:48 2020 (r358147)
+++ stable/12/sys/dev/amdpm/amdpm.c Thu Feb 20 01:41:12 2020 (r358148)
@@ -67,6 +67,8 @@ static int amdpm_debug = 0;
#define AMDPM_DEVICEID_AMD768PM 0x7443
#define AMDPM_DEVICEID_AMD8111PM 0x746B
+#define AMDPM_VENDORID_HYGON 0x1d94
+
/* nVidia nForce chipset */
#define AMDPM_VENDORID_NVIDIA 0x10de
#define AMDPM_DEVICEID_NF_SMB 0x01b4
@@ -199,7 +201,8 @@ amdpm_attach(device_t dev)
pci_write_config(dev, AMDPCI_GEN_CONFIG_PM, val_b | AMDPCI_PMIOEN, 1);
/* Allocate I/O space */
- if (pci_get_vendor(dev) == AMDPM_VENDORID_AMD)
+ if (pci_get_vendor(dev) == AMDPM_VENDORID_AMD ||
+ pci_get_vendor(dev) == AMDPM_VENDORID_HYGON)
amdpm_sc->rid = AMDPCI_PMBASE;
else
amdpm_sc->rid = NFPCI_PMBASE;
More information about the svn-src-stable-12
mailing list