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@se-eng.com> Reviewed-on: http://review.coreboot.org/1790 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
committed by
Ronald G. Minnich
parent
dd76bc0e01
commit
feadfb7776
@@ -97,11 +97,11 @@ void rtc_init(int invalid)
|
|||||||
for(i = 10; i < 128; i++) {
|
for(i = 10; i < 128; i++) {
|
||||||
cmos_write(0, i);
|
cmos_write(0, i);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
if (cmos_invalid) {
|
if (cmos_invalid) {
|
||||||
rtc_update_cmos_date(RTC_HAS_NO_ALTCENTURY);
|
rtc_update_cmos_date(RTC_HAS_NO_ALTCENTURY);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
printk(BIOS_WARNING, "RTC:%s%s%s%s\n",
|
printk(BIOS_WARNING, "RTC:%s%s%s%s\n",
|
||||||
invalid?" Clear requested":"",
|
invalid?" Clear requested":"",
|
||||||
cmos_invalid?" Power Problem":"",
|
cmos_invalid?" Power Problem":"",
|
||||||
|
Reference in New Issue
Block a user