diff options
Diffstat (limited to 'src/soc/intel/cannonlake/pmutil.c')
-rw-r--r-- | src/soc/intel/cannonlake/pmutil.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/soc/intel/cannonlake/pmutil.c b/src/soc/intel/cannonlake/pmutil.c index ebd3d61cc8..cee3f95a10 100644 --- a/src/soc/intel/cannonlake/pmutil.c +++ b/src/soc/intel/cannonlake/pmutil.c @@ -40,6 +40,7 @@ #include <soc/pm.h> #include <soc/smbus.h> #include <timer.h> +#include <vboot/vbnv.h> #include "chip.h" /* @@ -207,3 +208,8 @@ int soc_get_rtc_failed(void) return rtc_failed(ps->gen_pmcon_b); } + +int vbnv_cmos_failed(void) +{ + return rtc_failed(read32(pmc_mmio_regs() + GEN_PMCON_B)); +} |