ACPI reset now correctly sets the GPIREG registers back to 0xFF after zeroing all registers (which are the default values), fixes soft reset on the Abit BF6.

This commit is contained in:
OBattler
2020-06-05 19:55:33 +02:00
parent 9fb12c323e
commit 45b2d16c6b

View File

@@ -787,6 +787,7 @@ acpi_reset(void *priv)
int i;
memset(&dev->regs, 0x00, sizeof(acpi_regs_t));
dev->regs.gpireg[0] = dev->regs.gpireg[1] = dev->regs.gpireg[2] = 0xff;
for (i = 0; i < 4; i++)
dev->regs.gporeg[i] = dev->gporeg_default[i];
}