
This adds some fallbacks for DM RTC consumers, so they don't have to ifdef out their RTC code.
There's some funkiness going on with FSP on x86, but I don't know what the correct behavior is. See patch 1 for details.
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: Depend on DM_RTC rtc: Add fallbacks for dm functions
arch/x86/Kconfig | 2 ++ include/rtc.h | 32 +++++++++++++++++++++++++++++--- 2 files changed, 31 insertions(+), 3 deletions(-)