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>
This commit is contained in:
parent
b313e90162
commit
832452a7ea
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue