Gitiles
Code Review
Sign In
review.coreboot.org
/
coreboot
/
bf06c0fc46e795d18d2701ea497c26659f1d1eab
/
.
/
src
/
soc
/
amd
/
picasso
/
pmutil.c
blob: 5baf923939e95b0c0856efb53c7b4f1b81b810d5 [
file
] [
log
] [
blame
]
/* SPDX-License-Identifier: GPL-2.0-only */
#include
<security/vboot/vbnv.h>
#include
<pc80/mc146818rtc.h>
int
vbnv_cmos_failed
(
void
)
{
/* If CMOS power has failed, the century will be set to 0xff */
return
cmos_read
(
RTC_CLK_ALTCENTURY
)
==
0xff
;
}