Skip to content

Commit 009637d

Browse files
Yuechao ZhaoWim Van Sebroeck
authored andcommitted
watchdog: sp5100_tco: support Hygon FCH/SCH (Server Controller Hub)
Add PCI_VENDOR_ID_HYGON(Hygon vendor id [0x1d94]) in this driver Signed-off-by: Yuechao Zhao <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent f4dc529 commit 009637d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/watchdog/sp5100_tco.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static enum tco_reg_layout tco_reg_layout(struct pci_dev *dev)
9696
sp5100_tco_pci->device == PCI_DEVICE_ID_AMD_KERNCZ_SMBUS &&
9797
sp5100_tco_pci->revision >= AMD_ZEN_SMBUS_PCI_REV) {
9898
return efch_mmio;
99-
} else if (dev->vendor == PCI_VENDOR_ID_AMD &&
99+
} else if ((dev->vendor == PCI_VENDOR_ID_AMD || dev->vendor == PCI_VENDOR_ID_HYGON) &&
100100
((dev->device == PCI_DEVICE_ID_AMD_HUDSON2_SMBUS &&
101101
dev->revision >= 0x41) ||
102102
(dev->device == PCI_DEVICE_ID_AMD_KERNCZ_SMBUS &&
@@ -579,6 +579,8 @@ static const struct pci_device_id sp5100_tco_pci_tbl[] = {
579579
PCI_ANY_ID, },
580580
{ PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_KERNCZ_SMBUS, PCI_ANY_ID,
581581
PCI_ANY_ID, },
582+
{ PCI_VENDOR_ID_HYGON, PCI_DEVICE_ID_AMD_KERNCZ_SMBUS, PCI_ANY_ID,
583+
PCI_ANY_ID, },
582584
{ 0, }, /* End of list */
583585
};
584586
MODULE_DEVICE_TABLE(pci, sp5100_tco_pci_tbl);

0 commit comments

Comments
 (0)