soc/intel/xeon_sp: Add RTC failure checking
commite07ea4cd38c5c232515a8755d2b4fbff6f12b949
authorJingle Hsu <jingle_hsu@wiwynn.com>
Wed, 1 Jul 2020 10:26:49 +0000 (1 18:26 +0800)
committerPatrick Georgi <pgeorgi@google.com>
Sun, 12 Jul 2020 19:36:42 +0000 (12 19:36 +0000)
tree9cda898ea1131ddb757366fd65d8c75904e505d3
parent145a76182c58e2b83b2081d2545b5fa190e6930c
soc/intel/xeon_sp: Add RTC failure checking

Add a weak function mainboard_rtc_failed() for mainboard customization.

Check RTC_PWR_STS bit for RTC battery removal or CMOS clear jumper
triggered event.

Signed-off-by: Jingle Hsu <jingle_hsu@wiwynn.com>
Change-Id: Ic6da84277e71a5c51dfa4d97d5d0c0184478e8f0
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43004
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
src/soc/intel/xeon_sp/Makefile.inc
src/soc/intel/xeon_sp/include/soc/pmc.h
src/soc/intel/xeon_sp/include/soc/romstage.h
src/soc/intel/xeon_sp/pmutil.c [new file with mode: 0644]
src/soc/intel/xeon_sp/romstage.c