[PATCH v3 0/2] rtc: Add fallbacks for dm functions

Sean Anderson sean.anderson at seco.com
Mon Oct 24 17:42:02 CEST 2022


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(-)

-- 
2.35.1.1320.gc452695387.dirty



More information about the U-Boot mailing list