Skip to contentSkip to conversation

Add RTC chip pcf2127 support

PATCH New Meng Yi 2 participants 3 messages Nov 29, 2016 – Nov 30, 2016 Real time clock (RTC)

lore
Share & tools
lore

Meng Yi

author
#0 lore raw

PATCH 1/1 Add RTC chip pcf2127 support

This driver compatible with pcf2127 and pcf2129

---
 drivers/rtc/Makefile  |  1 +
 drivers/rtc/pcf2127.c | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 95 insertions(+)
 create mode 100644 drivers/rtc/pcf2127.c
drivers/rtc/Makefile +1 -0
index fc38a3f..c919427 100644
@@ -45,6 +45,7 @@ obj-$(CONFIG_RTC_MV) += mvrtc.o
 obj-$(CONFIG_RTC_MX27) += mx27rtc.o
 obj-$(CONFIG_RTC_MXS) += mxsrtc.o
 obj-$(CONFIG_RTC_PCF8563) += pcf8563.o
+obj-$(CONFIG_RTC_PCF2127) += pcf2127.o
 obj-$(CONFIG_RTC_PL031) += pl031.o
 obj-$(CONFIG_RTC_PT7C4338) += pt7c4338.o
 obj-$(CONFIG_RTC_RS5C372A) += rs5c372.o
drivers/rtc/pcf2127.c new file +94 -0

94 lines not on this page · raw message

Signature · 1 line
2.1.0.27.g96db324
#1 lore raw

PATCH 1/1 Add RTC chip pcf2127 support

Hi Meng,

Quoted 8 lines · Meng Yi

This driver compatible with pcf2127 and pcf2129

---
 drivers/rtc/Makefile  |  1 +
 drivers/rtc/pcf2127.c | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 95 insertions(+)
 create mode 100644 drivers/rtc/pcf2127.c

Please can you convert this to driver model?

See for example drivers/rtc/sandbox_rtc.c, or perhaps drivers/rtc/mc146818.c (you can ignore all code except that used by CONFIG_DM_RTC).

Regards,
Simon

author
#2 lore raw

PATCH 1/1 Add RTC chip pcf2127 support

Hi Simon,

Quoted 13 lines · Meng Yi
Quoted 9 lines

This driver compatible with pcf2127 and pcf2129

---
 drivers/rtc/Makefile  |  1 +
 drivers/rtc/pcf2127.c | 94
+++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 95 insertions(+)
 create mode 100644 drivers/rtc/pcf2127.c
Quoted 2 lines

Please can you convert this to driver model?

Ok, I will do it and send version V2 later.

Quoted 3 lines

See for example drivers/rtc/sandbox_rtc.c, or perhaps drivers/rtc/mc146818.c (you can ignore all code except that used by CONFIG_DM_RTC).

Regards,
Meng