diff options
Diffstat (limited to 'src/soc/intel/apollolake')
-rw-r--r-- | src/soc/intel/apollolake/pmutil.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/soc/intel/apollolake/pmutil.c b/src/soc/intel/apollolake/pmutil.c index abf47b7782..666ef83763 100644 --- a/src/soc/intel/apollolake/pmutil.c +++ b/src/soc/intel/apollolake/pmutil.c @@ -34,6 +34,7 @@ #include <soc/pci_devs.h> #include <soc/pm.h> #include <timer.h> +#include <vboot/vbnv.h> #include "chip.h" static uintptr_t read_pmc_mmio_bar(void) @@ -217,3 +218,8 @@ int soc_get_rtc_failed(void) return rtc_failed(ps->gen_pmcon1); } + +int vbnv_cmos_failed(void) +{ + return rtc_failed(read32((void *)(read_pmc_mmio_bar() + GEN_PMCON1))); +} |