
This adds some fallbacks for DM RTC consumers, so they don't have to ifdef out their RTC code.
Changes in v4: - Don't compile fsp_save_s3_stack in SPL (or TPL/VPL).
Changes in v3: - Select SPL_DM_RTC for HAVE_FSP. Before this series, even if just DM_RTC was selected, the DM RTC functions would be forward-declared. This probably would result in funky things at runtime.
Changes in v2: - Include linux/errno.h for ENOSYS. This is needed for some mips boards when CONFIG_BLK is enabled for whatever reason.
Sean Anderson (2): x86: fsp: Only compile fsp_save_s3_stack if (SPL_)DM_RTC is enabled rtc: Add fallbacks for dm functions
arch/x86/lib/fsp/fsp_common.c | 2 ++ include/rtc.h | 32 +++++++++++++++++++++++++++++--- 2 files changed, 31 insertions(+), 3 deletions(-)