u-boot/drivers/rtc
Chuanhua Han ef6c26d338 rtc: pcf2127: Fixed bug with rtc settings and getting error time
The previous pcf2127 RTC chip could not read and set the correct time.
When reading the data of internal registers, the read address was the
value of register plus 1. This is because this chip requires the host
to send a stop signal after setting the register address and before
reading the register data.

This patch sets the register address using dm_i2c_write and reads
the register data using the original dm_i2c_xfer in order to generate
a stop signal after the register address is set, and fixes the bug of
the original read and write time.

Signed-off-by: Biwen Li <biwen.li@nxp.com>
Signed-off-by: Chuanhua Han <chuanhua.han@nxp.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Heiko Schocher <hs@denx.de>
2019-07-09 10:51:12 +02:00
..
at91sam9_rtt.c rtc: remove CONFIG_CMD_DATE dependency 2018-07-25 15:00:24 +02:00
date.c rtc: compile date.c if DM_RTC 2018-07-24 09:25:23 -04:00
davinci.c rtc: remove CONFIG_CMD_DATE dependency 2018-07-25 15:00:24 +02:00
ds164x.c rtc: remove CONFIG_CMD_DATE dependency 2018-07-25 15:00:24 +02:00
ds174x.c rtc: remove CONFIG_CMD_DATE dependency 2018-07-25 15:00:24 +02:00
ds1302.c rtc: remove CONFIG_CMD_DATE dependency 2018-07-25 15:00:24 +02:00
ds1306.c rtc: remove CONFIG_CMD_DATE dependency 2018-07-25 15:00:24 +02:00
ds1307.c rtc: remove CONFIG_CMD_DATE dependency 2018-07-25 15:00:24 +02:00
ds1337.c rtc: remove CONFIG_CMD_DATE dependency 2018-07-25 15:00:24 +02:00
ds1374.c rtc: remove CONFIG_CMD_DATE dependency 2018-07-25 15:00:24 +02:00
ds1556.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ds3231.c rtc: remove CONFIG_CMD_DATE dependency 2018-07-25 15:00:24 +02:00
ftrtc010.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
i2c_rtc_emul.c drivers: rtc: resolve year 2038 problem in rtc_to_tm 2018-07-19 17:03:36 -04:00
imxdi.c rtc: remove CONFIG_CMD_DATE dependency 2018-07-25 15:00:24 +02:00
isl1208.c rtc: Add read8 and write8 support to isl1208 driver 2018-10-08 14:45:02 -04:00
Kconfig Kconfig: Migrate CONFIG_RTC_M41T62 define to Kconfig 2018-12-03 10:44:10 -05:00
m41t11.c rtc: remove CONFIG_CMD_DATE dependency 2018-07-25 15:00:24 +02:00
m41t60.c rtc: remove CONFIG_CMD_DATE dependency 2018-07-25 15:00:24 +02:00
m41t62.c rtc: m41t62: add compatible for m41t82 2019-04-25 00:00:49 +02:00
m41t94.c
m48t35ax.c rtc: remove CONFIG_CMD_DATE dependency 2018-07-25 15:00:24 +02:00
Makefile rtc: Allow use of RTC in SPL and TPL 2018-10-09 04:40:27 -06:00
max6900.c rtc: remove CONFIG_CMD_DATE dependency 2018-07-25 15:00:24 +02:00
mc13xxx-rtc.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mc146818.c Patch queue for efi - 2018-07-25 2018-07-30 16:02:29 -04:00
mcfrtc.c rtc: remove CONFIG_CMD_DATE dependency 2018-07-25 15:00:24 +02:00
mk48t59.c rtc: remove CONFIG_CMD_DATE dependency 2018-07-25 15:00:24 +02:00
mvrtc.c drivers/rtc: convert mvrtc to DM 2018-06-05 20:19:09 -04:00
mvrtc.h drivers/rtc: convert mvrtc to DM 2018-06-05 20:19:09 -04:00
mx27rtc.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mxsrtc.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pcf2127.c rtc: pcf2127: Fixed bug with rtc settings and getting error time 2019-07-09 10:51:12 +02:00
pcf8563.c rtc: remove CONFIG_CMD_DATE dependency 2018-07-25 15:00:24 +02:00
pl031.c rtc: pl031: convert the driver to driver model 2018-09-23 21:55:31 +02:00
pt7c4338.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rs5c372.c rtc: remove CONFIG_CMD_DATE dependency 2018-07-25 15:00:24 +02:00
rtc-lib.c rtc: export rtc_month_days() 2019-05-31 23:27:12 +02:00
rtc-uclass.c rtc: Allow child drivers 2018-11-29 09:30:05 -07:00
rv3029.c rtc: rv3029: update to support DM and sync with Linux 4.17 2018-11-30 21:56:45 +01:00
rx8010sj.c rtc: adding RX8010SJ rtc driver 2018-02-04 12:00:58 +01:00
rx8025.c rtc: remove CONFIG_CMD_DATE dependency 2018-07-25 15:00:24 +02:00
s3c24x0_rtc.c rtc: remove CONFIG_CMD_DATE dependency 2018-07-25 15:00:24 +02:00
s35392a.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sandbox_rtc.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
x1205.c rtc: remove CONFIG_CMD_DATE dependency 2018-07-25 15:00:24 +02:00