[coreboot] Patch set updated for coreboot: e1fb85d If cmos is invalid, always set the rtc date and time

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Wed Nov 7 20:28:20 CET 2012


Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1790

-gerrit

commit e1fb85daa6070fc7355618d81e86e502ebe3e401
Author: Stefan Reinauer <reinauer at chromium.org>
Date:   Tue Nov 6 18:39:41 2012 -0800

    If cmos is invalid, always set the rtc date and time
    
    If cmos is invalid for any reason, always set the date and time
    before marking RTC valid.
    
    Change-Id: Ib9d154802f75221d58bf28ba9c813f2529904596
    Signed-off-by: Marc Jones <marc.jones at se-eng.com>
---
 src/drivers/pc80/mc146818rtc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/drivers/pc80/mc146818rtc.c b/src/drivers/pc80/mc146818rtc.c
index dd9a0eb..aea0fcb 100644
--- a/src/drivers/pc80/mc146818rtc.c
+++ b/src/drivers/pc80/mc146818rtc.c
@@ -97,11 +97,11 @@ void rtc_init(int invalid)
 		for(i = 10; i < 128; i++) {
 			cmos_write(0, i);
 		}
-
+#endif
 		if (cmos_invalid) {
 			rtc_update_cmos_date(RTC_HAS_NO_ALTCENTURY);
 		}
-#endif
+
 		printk(BIOS_WARNING, "RTC:%s%s%s%s\n",
 			invalid?" Clear requested":"",
 			cmos_invalid?" Power Problem":"",




More information about the coreboot mailing list