]> git.ipfire.org Git - people/ms/u-boot.git/commit - post/drivers/rtc.c
LWMON5: POST RTC fix
authorYuri Tikhonov <yur@emcraft.com>
Thu, 20 Mar 2008 14:56:04 +0000 (17:56 +0300)
committerWolfgang Denk <wd@denx.de>
Thu, 20 Mar 2008 20:48:46 +0000 (21:48 +0100)
commitb73a19e1609d0f705cbab8014ca17aefe89e4c76
tree4f6752b24fe118da445233479396497d516a1e50
parent23e20aa6488e6c0622496549861bfdc74108debe
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: Yuri Tikhonov <yur@emcraft.com>
34 files changed:
board/bmw/m48t59y.c
board/cray/L1/L1.c
board/etin/debris/phantom.c
board/mousse/m48t59y.c
cpu/s3c44b0/cpu.c
drivers/rtc/bfin_rtc.c
drivers/rtc/ds12887.c
drivers/rtc/ds1302.c
drivers/rtc/ds1306.c
drivers/rtc/ds1307.c
drivers/rtc/ds1337.c
drivers/rtc/ds1374.c
drivers/rtc/ds1556.c
drivers/rtc/ds164x.c
drivers/rtc/ds174x.c
drivers/rtc/ds3231.c
drivers/rtc/isl1208.c
drivers/rtc/m41t11.c
drivers/rtc/m41t60.c
drivers/rtc/m41t62.c
drivers/rtc/m48t35ax.c
drivers/rtc/max6900.c
drivers/rtc/mc146818.c
drivers/rtc/mcfrtc.c
drivers/rtc/mk48t59.c
drivers/rtc/mpc5xxx.c
drivers/rtc/mpc8xx.c
drivers/rtc/pcf8563.c
drivers/rtc/rs5c372.c
drivers/rtc/rx8025.c
drivers/rtc/s3c24x0_rtc.c
drivers/rtc/x1205.c
include/rtc.h
post/drivers/rtc.c