Skip to content
Snippets Groups Projects
Commit b73a19e1 authored by Yuri Tikhonov's avatar Yuri Tikhonov Committed by Wolfgang Denk
Browse files

LWMON5: POST RTC fix


Modify the RTC API to provide one a status for the time reported by
the rtc_get() function:
  0 - a reliable time is guaranteed,
< 0 - a reliable time isn't guaranteed (power fault, clock issues,
      and so on).

The RTC chip drivers are responsible for providing this info if the
corresponding chip supports such functionality. If not - always
report that the time is reliable.

The POST RTC test was modified to detect the RTC faults utilizing
this new rtc_get() feature.

Signed-off-by: default avatarYuri Tikhonov <yur@emcraft.com>
parent 23e20aa6
No related branches found
No related tags found
Loading
Showing with 81 additions and 26 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment