[coreboot] New patch to review for coreboot: 540a3e6 If cmos is invalid, always set the rtc date and time

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Wed Nov 7 03:56:02 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


commit 540a3e68d8954bc2a6c0496afa5e83146d76e273
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);
 		if (cmos_invalid) {
 		printk(BIOS_WARNING, "RTC:%s%s%s%s\n",
 			invalid?" Clear requested":"",
 			cmos_invalid?" Power Problem":"",

More information about the coreboot mailing list