From 1a0004dced80ae75be9b2845cd3bb0b5287b777a Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Sat, 14 Nov 2020 17:34:21 -0300 Subject: [PATCH] Fix CMOS battery low warning on GA-686BX --- src/acpi.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/acpi.c b/src/acpi.c index 75225daaf..f1e8da804 100644 --- a/src/acpi.c +++ b/src/acpi.c @@ -1135,10 +1135,12 @@ acpi_reset(void *priv) memset(&dev->regs, 0x00, sizeof(acpi_regs_t)); dev->regs.gpireg[0] = 0xff; dev->regs.gpireg[1] = 0xff; - /* SMSC SLC90E66 machines: + /* A-Trend ATC7020BXII: - Bit 3: 80-conductor cable on secondary IDE channel (active low) - - Bit 2: 80-conductor cable on primary IDE channel (active low) */ - dev->regs.gpireg[2] = 0xf3; + - Bit 2: 80-conductor cable on primary IDE channel (active low) + Gigabyte GA-686BX: + - Bit 1: CMOS battery low (active high) */ + dev->regs.gpireg[2] = 0xf1; for (i = 0; i < 4; i++) dev->regs.gporeg[i] = dev->gporeg_default[i]; if (dev->vendor == VEN_VIA_596B) {