[coreboot] New patch to review for coreboot: 01d565f RTC: Use the correct index when setting the default month

Dave Frodin (dave.frodin@se-eng.com) gerrit at coreboot.org
Mon Feb 18 17:22:49 CET 2013


Dave Frodin (dave.frodin at se-eng.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/2442

-gerrit

commit 01d565f4de4022509a623413bf19155204f2e478
Author: Dave Frodin <dave.frodin at se-eng.com>
Date:   Mon Feb 18 08:34:49 2013 -0700

    RTC: Use the correct index when setting the default month
    
    Change-Id: I947a8b7ccd6141f164d1e63f7b8f524efa6c00f2
    Signed-off-by: Dave Frodin <dave.frodin at se-eng.com>
---
 src/drivers/pc80/mc146818rtc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/drivers/pc80/mc146818rtc.c b/src/drivers/pc80/mc146818rtc.c
index 5ffa9d7..d91f207 100644
--- a/src/drivers/pc80/mc146818rtc.c
+++ b/src/drivers/pc80/mc146818rtc.c
@@ -21,7 +21,7 @@ static void rtc_update_cmos_date(u8 has_century)
 	cmos_write(1, RTC_CLK_HOUR);
 	cmos_write(COREBOOT_BUILD_WEEKDAY_BCD + 1, RTC_CLK_DAYOFWEEK);
 	cmos_write(COREBOOT_BUILD_DAY_BCD, RTC_CLK_DAYOFMONTH);
-	cmos_write(COREBOOT_BUILD_MONTH_BCD, RTC_CLK_MINUTE);
+	cmos_write(COREBOOT_BUILD_MONTH_BCD, RTC_CLK_MONTH);
 	cmos_write(COREBOOT_BUILD_YEAR_BCD, RTC_CLK_YEAR);
 	if (has_century) cmos_write(0x20, RTC_CLK_ALTCENTURY);
 }



More information about the coreboot mailing list