summaryrefslogtreecommitdiff
path: root/src/drivers/pc80
diff options
context:
space:
mode:
authorDave Frodin <dave.frodin@se-eng.com>2013-02-18 08:34:49 -0700
committerRonald G. Minnich <rminnich@gmail.com>2013-02-19 00:59:50 +0100
commit832452a7ea71af1cba160fdb34c1856c7c9216fd (patch)
treee13594483e3d6d06005288d6b0d6c0ea6a8eac38 /src/drivers/pc80
parentb313e90162fcc305178d26408533b183ce045965 (diff)
downloadcoreboot-832452a7ea71af1cba160fdb34c1856c7c9216fd.tar.xz
RTC: Use the correct index when setting the default month
Change-Id: I947a8b7ccd6141f164d1e63f7b8f524efa6c00f2 Signed-off-by: Dave Frodin <dave.frodin@se-eng.com> Reviewed-on: http://review.coreboot.org/2442 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/drivers/pc80')
-rw-r--r--src/drivers/pc80/mc146818rtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/pc80/mc146818rtc.c b/src/drivers/pc80/mc146818rtc.c
index 5ffa9d7fc4..d91f207427 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);
}