mirror of
https://github.com/memtest86plus/memtest86plus.git
synced 2025-01-04 11:46:55 -06:00
system/hwquirks: Optimization Loongson 7A2000 EHCI quirk (#473)
Currentilly, it only compares the root bus DID is 0x7A00 which sometimes fails, a new logic was added to compare the 7A2000 EHCI DID to fix it. Signed-off-by: Chao Li <lichao@loongson.cn>
This commit is contained in:
parent
bdefff91ce
commit
422212b06a
@ -259,9 +259,11 @@ void quirks_init(void)
|
||||
// -----------------------------------------------------------
|
||||
// -- Loongson 7A1000 and 7A2000 chipset USB 2.0 workaround --
|
||||
// -----------------------------------------------------------
|
||||
if (quirk.root_vid == PCI_VID_LOONGSON && quirk.root_did == 0x7a00) {
|
||||
quirk.id = QUIRK_LOONGSON7A00_EHCI_WORKARD;
|
||||
quirk.type |= QUIRK_TYPE_USB;
|
||||
quirk.process = loongson_7a00_ehci_workaround;
|
||||
if (quirk.root_vid == PCI_VID_LOONGSON) {
|
||||
if (pci_config_read16(0, 4, 1, PCI_DID_REG) == 0x7a14) {
|
||||
quirk.id = QUIRK_LOONGSON7A00_EHCI_WORKARD;
|
||||
quirk.type |= QUIRK_TYPE_USB;
|
||||
quirk.process = loongson_7a00_ehci_workaround;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user