summaryrefslogtreecommitdiff
path: root/drivers/rtc/bfin_rtc.c
AgeCommit message (Collapse)AuthorFilesLines
2017-04-18drivers: remove Blackfin specific driversMasahiro Yamada1-121/+0
These drivers have no user since commit ea3310e8aafa ("Blackfin: Remove"). Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Michal Simek <michal.simek@xilinx.com> Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
2015-05-06dm: rtc: Rename mktime() and reduce the number of parametersSimon Glass1-2/+1
Most callers unpack the structure and pass each member. It seems better to pass the whole structure instead, as with the C library. Also add an rtc_ prefix. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Heiko Schocher <hs@denx.de>
2015-05-06dm: rtc: Rename to_tm() to rtc_to_tm() and add error codeSimon Glass1-1/+1
Rename this function so that it is clear that it is provided by the RTC. Also return an error when it cannot function as expected. This is unlikely to occur since it works for dates since 1752 and many RTCs do not support such old dates. Still it is better to be accurate. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Heiko Schocher <hs@denx.de>
2014-11-25rtc: mc146818: Set up RTC at start of daySimon Glass1-1/+1
Provide a function to set up the RTC ready for use. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
2013-10-15Coding Style cleanup: replace leading SPACEs by TABsWolfgang Denk1-1/+1
Signed-off-by: Wolfgang Denk <wd@denx.de> [trini: Drop changes for PEP 4 following python tools] Signed-off-by: Tom Rini <trini@ti.com>
2008-10-23Blackfin: only initialize the RTC when actually usedMike Frysinger1-9/+10
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2008-09-07rtc: allow rtc_set to return an error and use it in cmd_dateJean-Christophe PLAGNIOL-VILLARD1-2/+4
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2008-08-19rtc: Clean drivers/rtc/MakefileMichal Simek1-1/+1
Signed-off-by: Michal Simek <monstr@monstr.eu>
2008-03-20LWMON5: POST RTC fixYuri Tikhonov1-2/+4
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>
2008-02-05rewrite/cleanup Blackfin RTC driverMike Frysinger1-0/+117
Signed-off-by: Mike Frysinger <vapier@gentoo.org>