drivers/rtc: add support for MCP7941x RTCs
PATCH 1/1 drivers/rtc: add support for MCP7941x RTCs
The Microchip MCP7941x series of chips are very similar to Maxim's DS1307 but have some important differences:
o I2C address 0x6f rather than 0x68
o The oscillator start bit logic is reversed
o VBATEN bit to enable a power-fail time-stamp
o SQWE is bit 6 of the control register, not bit 4
Adapt the DS1307 driver to support these chips.
Signed-off-by Philip Paeps <[email protected]>
--- README | 1 + drivers/rtc/Makefile | 1 + drivers/rtc/ds1307.c | 49 ++++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 50 insertions(+), 1 deletion(-)
README +1 -0
@@ -1111,6 +1111,7 @@ The following options need to be configured: CONFIG_RTC_DS164x - use Dallas DS164x RTC CONFIG_RTC_ISL1208 - use Intersil ISL1208 RTC CONFIG_RTC_MAX6900 - use Maxim, Inc. MAX6900 RTC + CONFIG_RTC_MCP7941X - use Microchip MCP7941x RTC CONFIG_SYS_RTC_DS1337_NOOSC - Turn off the OSC output for DS1337 CONFIG_SYS_RV3029_TCR - enable trickle charger on RV3029 RTC.
drivers/rtc/Makefile +1 -0
@@ -16,6 +16,7 @@ obj-$(CONFIG_RTC_DS1302) += ds1302.o obj-$(CONFIG_RTC_DS1306) += ds1306.o obj-$(CONFIG_RTC_DS1307) += ds1307.o obj-$(CONFIG_RTC_DS1338) += ds1307.o +obj-$(CONFIG_RTC_MCP7941X) += ds1307.o obj-$(CONFIG_RTC_DS1337) += ds1337.o obj-$(CONFIG_RTC_DS1374) += ds1374.o obj-$(CONFIG_RTC_DS1388) += ds1337.o
drivers/rtc/ds1307.c +48 -1
102 lines not on this page · raw message
Signature · 1 line
1.7.10.4