From d1fc8c13437da7326aaf189f1acc4fae4f6715b0 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Fri, 15 Sep 2017 12:37:05 -0600 Subject: soc/intel/skylake: refactor rtc failure checking In order to prepare for checking RTC failure in the early boot paths move the rtc failure calculation to pmutil.c and add a helper function to determine if failure occurred. BUG=b:63054105 Change-Id: I88bf9bdba8c1f3a11bc8301869e3da9f033ec381 Signed-off-by: Aaron Durbin Reviewed-on: https://review.coreboot.org/21554 Reviewed-by: Subrata Banik Reviewed-by: Furquan Shaikh Tested-by: build bot (Jenkins) --- src/soc/intel/skylake/include/soc/pm.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/soc/intel/skylake/include') diff --git a/src/soc/intel/skylake/include/soc/pm.h b/src/soc/intel/skylake/include/soc/pm.h index 1e4520e687..a547094c37 100644 --- a/src/soc/intel/skylake/include/soc/pm.h +++ b/src/soc/intel/skylake/include/soc/pm.h @@ -193,6 +193,9 @@ void pmc_set_disb(void); /* Initialize GPEs */ void pmc_gpe_init(void); +/* Return non-zero when RTC failure happened. */ +int rtc_failure(void); + static inline int deep_s3_enabled(void) { uint32_t deep_s3_pol; -- cgit v1.2.3