diff --git a/src/soc/amd/stoneyridge/pmutil.c b/src/soc/amd/stoneyridge/pmutil.c index 25c9ec15c1..baabba5fbb 100644 --- a/src/soc/amd/stoneyridge/pmutil.c +++ b/src/soc/amd/stoneyridge/pmutil.c @@ -17,11 +17,12 @@ #include #include #include +#include int vbnv_cmos_failed(void) { - /* FIXME: RTC failure checking not supported. */ - return 0; + /* If CMOS power has failed, the century will be set to 0xff */ + return cmos_read(RTC_CLK_ALTCENTURY) == 0xff; } int vboot_platform_is_resuming(void)