diff options
author | Aaron Durbin <adurbin@chromium.org> | 2017-09-15 14:24:03 -0600 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2017-09-20 23:54:07 +0000 |
commit | 64b4bddcbc2156e9a410f07e14e58cf01d579fdb (patch) | |
tree | a9b5157046c8102a876166739b0ea00d9b8677d9 /src/soc/intel/baytrail/include | |
parent | d1fc8c13437da7326aaf189f1acc4fae4f6715b0 (diff) | |
download | coreboot-64b4bddcbc2156e9a410f07e14e58cf01d579fdb.tar.xz |
soc/intel/baytrail: 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: I1d90cc557225ddbba1787bf95eae0de623af487e
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/21555
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/soc/intel/baytrail/include')
-rw-r--r-- | src/soc/intel/baytrail/include/soc/pmc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/soc/intel/baytrail/include/soc/pmc.h b/src/soc/intel/baytrail/include/soc/pmc.h index b65a3e8d83..c287d9cea9 100644 --- a/src/soc/intel/baytrail/include/soc/pmc.h +++ b/src/soc/intel/baytrail/include/soc/pmc.h @@ -288,6 +288,9 @@ void southcluster_log_state(void); static inline void southcluster_log_state(void) {} #endif +/* Return non-zero when RTC failure happened. */ +int rtc_failure(void); + #endif /* !defined(__ASSEMBLER__) && !defined(__ACPI__) */ #endif /* _BAYTRAIL_PMC_H_ */ |