forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 cf4ce59b3b70238352c7f1729f0f7223214828ad
kernel/arch/x86/pci/amd_bus.c
....@@ -93,7 +93,8 @@
9393 vendor = id & 0xffff;
9494 device = (id>>16) & 0xffff;
9595
96
- if (vendor != PCI_VENDOR_ID_AMD)
96
+ if (vendor != PCI_VENDOR_ID_AMD &&
97
+ vendor != PCI_VENDOR_ID_HYGON)
9798 continue;
9899
99100 if (hb_probes[i].device == device) {
....@@ -390,7 +391,8 @@
390391
391392 static int __init amd_postcore_init(void)
392393 {
393
- if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD)
394
+ if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD &&
395
+ boot_cpu_data.x86_vendor != X86_VENDOR_HYGON)
394396 return 0;
395397
396398 early_root_info_init();