Add special case on NVR register 0D for VIA 686A/B
This commit is contained in:
10
src/nvr_at.c
10
src/nvr_at.c
@@ -580,7 +580,17 @@ nvr_reg_write(uint16_t reg, uint8_t val, void *priv)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case RTC_REGC: /* R/O */
|
case RTC_REGC: /* R/O */
|
||||||
|
break;
|
||||||
|
|
||||||
case RTC_REGD: /* R/O */
|
case RTC_REGD: /* R/O */
|
||||||
|
/* VT82C686A/B have an ACPI register bit controlled by 0D bit 7.
|
||||||
|
This is overwritten on read, but testing shows BIOSes will
|
||||||
|
immediately check the ACPI register after writing to this. */
|
||||||
|
if (local->cent == RTC_CENTURY_VIA) {
|
||||||
|
nvr->regs[RTC_REGD] &= ~0x80;
|
||||||
|
if (val & 0x80)
|
||||||
|
nvr->regs[RTC_REGD] |= 0x80;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 0x2e:
|
case 0x2e:
|
||||||
|
|||||||
Reference in New Issue
Block a user