u-boot/drivers/rtc
Benoît Thébaudeau df930e9b3c rtc: pcf8563: Make century compatible with Linux
This driver uses the century bit of this RTC in the opposite way Linux does.
From Linux's rtc-pcf8563.c:
	/*
	 * The meaning of MO_C bit varies by the chip type.
	 * From PCF8563 datasheet: this bit is toggled when the years
	 * register overflows from 99 to 00
	 *   0 indicates the century is 20xx
	 *   1 indicates the century is 19xx
	 * From RTC8564 datasheet: this bit indicates change of
	 * century. When the year digit data overflows from 99 to 00,
	 * this bit is set. By presetting it to 0 while still in the
	 * 20th century, it will be set in year 2000, ...
	 * There seems no reliable way to know how the system use this
	 * bit.  So let's do it heuristically, assuming we are live in
	 * 1970...2069.
	 */

As U-Boot's PCF8563 driver does not say it is supposed to support the RTC8564,
make this driver compatible with Linux's by giving the opposite meaning to the
century bit.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Cc: Wolfgang Denk <wd@denx.de>
2012-09-02 17:31:00 +02:00
..
at91sam9_rtt.c AT91: change includes from asm/arch/io.h to asm/io.h 2011-05-18 07:56:51 +02:00
bfin_rtc.c Blackfin: only initialize the RTC when actually used 2008-10-23 05:03:50 -04:00
date.c Big white-space cleanup. 2008-05-21 00:14:08 +02:00
davinci.c arm, davinci: move davinci_rtc struct to hardware.h 2011-12-06 23:59:37 +01:00
ds164x.c Switch from per-driver to common definition of bin2bcd and bcd2bin 2009-08-25 12:57:55 +02:00
ds174x.c Switch from per-driver to common definition of bin2bcd and bcd2bin 2009-08-25 12:57:55 +02:00
ds1302.c rtc: allow rtc_set to return an error and use it in cmd_date 2008-09-07 00:56:36 +02:00
ds1306.c Switch from per-driver to common definition of bin2bcd and bcd2bin 2009-08-25 12:57:55 +02:00
ds1307.c Switch from per-driver to common definition of bin2bcd and bcd2bin 2009-08-25 12:57:55 +02:00
ds1337.c Add support for DS1388. 2012-08-10 23:46:54 +02:00
ds1374.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
ds1556.c Switch from per-driver to common definition of bin2bcd and bcd2bin 2009-08-25 12:57:55 +02:00
ds3231.c drivers/rtc/ds3231.c: fix GCC 4.6 build warnings 2011-11-07 22:09:50 +01:00
ds12887.c Switch from per-driver to common definition of bin2bcd and bcd2bin 2009-08-25 12:57:55 +02:00
ftrtc010.c ftrtc010.c : enhance code according to original datasheet 2010-10-20 21:46:30 +02:00
imxdi.c rtc: imxdi: Initial support 2012-09-01 14:58:18 +02:00
isl1208.c Switch from per-driver to common definition of bin2bcd and bcd2bin 2009-08-25 12:57:55 +02:00
m41t11.c m41t11: Remove unused functions 2009-12-02 23:21:02 +01:00
m41t60.c Switch from per-driver to common definition of bin2bcd and bcd2bin 2009-08-25 12:57:55 +02:00
m41t62.c rtc/m41t62: Add support for M41T82 with HT (Halt Update) 2012-07-07 14:07:43 +02:00
m41t94.c Fix for Void function returning value in sbc35-a9g20 2009-11-27 16:26:11 -06:00
m48t35ax.c Switch from per-driver to common definition of bin2bcd and bcd2bin 2009-08-25 12:57:55 +02:00
Makefile rtc: add support of mx27 rtc 2012-09-01 14:58:25 +02:00
max6900.c Switch from per-driver to common definition of bin2bcd and bcd2bin 2009-08-25 12:57:55 +02:00
mc13xxx-rtc.c rtc: Make mc13783-rtc driver generic 2011-11-03 22:56:19 +01:00
mc146818.c eNET: Add RTC support to eNET 2011-02-12 15:11:43 +11:00
mcfrtc.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
mk48t59.c Remove AmigaOneG3SE board 2010-06-23 23:24:20 +02:00
mpc5xxx.c cleanup: Fix typos and misspellings in various files. 2011-07-28 21:27:36 +02:00
mpc8xx.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
mvrtc.c ARM: dreamplug: fix compilation 2011-11-03 22:56:21 +01:00
mvrtc.h drivers/rtc: add Marvell Integrated RTC 2011-08-04 19:00:34 +02:00
mx27rtc.c rtc: add support of mx27 rtc 2012-09-01 14:58:25 +02:00
mxsrtc.c mxs: Convert sys_proto.h prefixes to 'mxs' 2012-09-01 14:58:25 +02:00
pcf8563.c rtc: pcf8563: Make century compatible with Linux 2012-09-02 17:31:00 +02:00
pl031.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
pt7c4338.c RTC driver for PT7C4338 chip. 2010-12-17 20:20:00 +01:00
rs5c372.c Switch from per-driver to common definition of bin2bcd and bcd2bin 2009-08-25 12:57:55 +02:00
rtc4543.c Switch from per-driver to common definition of bin2bcd and bcd2bin 2009-08-25 12:57:55 +02:00
rv3029.c drivers/rtc/rv3029.c: fix GCC 4.6 build warnings 2011-11-07 22:09:54 +01:00
rx8025.c Switch from per-driver to common definition of bin2bcd and bcd2bin 2009-08-25 12:57:55 +02:00
s3c24x0_rtc.c drivers/rtc/s3c24x0_rtc.c: fix GCC 4.6 warnings 2011-11-16 21:37:37 +01:00
s3c44b0_rtc.c Switch from per-driver to common definition of bin2bcd and bcd2bin 2009-08-25 12:57:55 +02:00
x1205.c Switch from per-driver to common definition of bin2bcd and bcd2bin 2009-08-25 12:57:55 +02:00