Small bugfix in i82801xx_lpc.c.
Signed-off-by: Corey Osgood <corey.osgood@gmail.com> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2721 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
c0eb5e0830
commit
d9e56e9cd3
|
@ -89,8 +89,8 @@ void i82801xx_rtc_init(struct device *dev)
|
|||
uint8_t reg8;
|
||||
uint32_t reg32;
|
||||
int rtc_failed;
|
||||
byte = pci_read_config8(dev, GEN_PMCON_3);
|
||||
rtc_failed = byte & RTC_BATTERY_DEAD;
|
||||
reg8 = pci_read_config8(dev, GEN_PMCON_3);
|
||||
rtc_failed = reg8 & RTC_BATTERY_DEAD;
|
||||
if (rtc_failed) {
|
||||
reg8 &= ~(1 << 1); /* preserve the power fail state */
|
||||
pci_write_config8(dev, GEN_PMCON_3, reg8);
|
||||
|
|
Loading…
Reference in New Issue