1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <security/vboot/vbnv.h>
4 #include <pc80/mc146818rtc.h>
6 int vbnv_cmos_failed(void)
8 /* If CMOS power has failed, the century will be set to 0xff */
9 return cmos_read(RTC_CLK_ALTCENTURY
) == 0xff;