summaryrefslogtreecommitdiffstats
path: root/include/bcd.h
Commit message (Collapse)AuthorAgeFilesLines
* dm: Remove unnecessary types in bcd.hSimon Glass2015-05-051-5/+3
| | | | | | | | We don't need to use u8, and if we avoid it, it isn't so much of a problem that rtc.h includes this header. With this change we can include rtc.h from sandbox files. Signed-off-by: Simon Glass <sjg@chromium.org>
* Replace BCD2BIN and BIN2BCD macros with inline functionsAlbin Tonnerre2009-08-251-7/+12
| | | | | | | | | | In the process, also remove backward-compatiblity macros BIN_TO_BCD and BCD_TO_BIN and update the sole board using them to use the new bin2bcd and bcd2bin instead Signed-off-by: Albin Tonnerre <albin.tonnerre@free-electrons.com> Acked-by: Stefan Roese <sr@denx.de> Acked-by: Detlev Zundel <dzu@denx.de>
* rtc: Add Xicor/Intersil X1205 RTC supportStefan Roese2007-10-311-0/+20
This patch adds support for the Xicor/Intersil X1205 RTC used on the AMCC Makalu eval board. This driver is basically cloned from the Linux driver version (2.6.23). This patch also introduces the Linux bcd.h header for the BCD2BIN/ BIN2BCD conversions. In the future some of the other U-Boot RTC driver should be converted to also use this header instead of implementing their own local copy of these functions/macros. Signed-off-by: Stefan Roese <sr@denx.de>
OpenPOWER on IntegriCloud