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

-gerrit

commit 540a3e68d8954bc2a6c0496afa5e83146d76e273
Author: Stefan Reinauer <[email protected]>
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 <[email protected]>
---
 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":"",

-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to