diff options
author | Stefan Reinauer <stepan@openbios.org> | 2006-08-23 14:28:37 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2006-08-23 14:28:37 +0000 |
commit | eca92fb37127246b3c1f323442322e93ed65861d (patch) | |
tree | 7aca3eaa45135eea56ebde5613e6ac26714ca976 /src/southbridge/intel/i82801ca/cmos_failover.c | |
parent | 6a1540b606f55e8b91ac6502af62f1b0c091efe3 (diff) |
Uwe Hermann:
here's a patch which replaces all DOS newlines with Unix newlines, and
removes some useless $Rev$, $Id$, and $Header$ tags.
(part 1)
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2385 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/southbridge/intel/i82801ca/cmos_failover.c')
-rw-r--r-- | src/southbridge/intel/i82801ca/cmos_failover.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/southbridge/intel/i82801ca/cmos_failover.c b/src/southbridge/intel/i82801ca/cmos_failover.c index 6197ef677a..8eb11c3f64 100644 --- a/src/southbridge/intel/i82801ca/cmos_failover.c +++ b/src/southbridge/intel/i82801ca/cmos_failover.c @@ -1,19 +1,19 @@ -//kind of cmos_err for ich3
-
-#include "i82801ca.h"
+//kind of cmos_err for ich3 + +#include "i82801ca.h" static void check_cmos_failed(void) -{
+{ #if HAVE_OPTION_TABLE - uint8_t byte = pci_read_config8(PCI_DEV(0,0x1f,0),GEN_PMCON_3);
+ uint8_t byte = pci_read_config8(PCI_DEV(0,0x1f,0),GEN_PMCON_3); if( byte & RTC_BATTERY_DEAD) { - // Set boot_option and last_boot to 'Fallback',
+ // Set boot_option and last_boot to 'Fallback', // clear reboot_bits byte = cmos_read(RTC_BOOT_BYTE); byte &= 0x0c; byte |= MAX_REBOOT_CNT << 4; cmos_write(byte, RTC_BOOT_BYTE); - }
+ } #endif } |