rtc: add Microcrystal RV-8803 driver
PATCH v2 1/1 rtc: add Microcrystal RV-8803 driver
Signed-off-by Michael Walle <[email protected]>
---
Btw if anybody notices the compatible string difference to the rv3029 driver, ie mc,rv3029 vs microcrystal,rv8803. The "mc" prefix is actually the legacy one.
changes since v1:
- enable driver in sandbox_defconfig and sandbox64_defconfig
configs/sandbox64_defconfig | 1 + configs/sandbox_defconfig | 1 + drivers/rtc/Kconfig | 10 +++ drivers/rtc/Makefile | 1 + drivers/rtc/rv8803.c | 167 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 180 insertions(+) create mode 100644 drivers/rtc/rv8803.c
configs/sandbox64_defconfig +1 -0
@@ -163,6 +163,7 @@ CONFIG_REMOTEPROC_SANDBOX=y CONFIG_DM_RESET=y CONFIG_SANDBOX_RESET=y CONFIG_DM_RTC=y +CONFIG_RTC_RV8803=y CONFIG_SANDBOX_SERIAL=y CONFIG_SMEM=y CONFIG_SANDBOX_SMEM=y
configs/sandbox_defconfig +1 -0
@@ -179,6 +179,7 @@ CONFIG_REMOTEPROC_SANDBOX=y CONFIG_DM_RESET=y CONFIG_SANDBOX_RESET=y CONFIG_DM_RTC=y +CONFIG_RTC_RV8803=y CONFIG_DEBUG_UART_SANDBOX=y CONFIG_SANDBOX_SERIAL=y CONFIG_SMEM=y
drivers/rtc/Kconfig +10 -0
@@ -70,6 +70,16 @@ config RTC_RV3029 This driver supports reading and writing the RTC/calendar and the battery-baced SRAM section. +config RTC_RV8803 + bool "Enable RV8803 driver" + depends on DM_RTC + help + The Micro Crystal RV8803 is a high accuracy, ultra-low power I2C + Real Time Clock (RTC) with temperature compensation. + + This driver supports reading and writing the RTC/calendar and + detects total power failures. + config RTC_RX8010SJ bool "Enable RX8010SJ driver" depends on DM_RTC
drivers/rtc/Makefile +1 -0
@@ -46,6 +46,7 @@ obj-$(CONFIG_RTC_PL031) += pl031.o obj-$(CONFIG_RTC_PT7C4338) += pt7c4338.o obj-$(CONFIG_RTC_RS5C372A) += rs5c372.o obj-$(CONFIG_RTC_RV3029) += rv3029.o +obj-$(CONFIG_RTC_RV8803) += rv8803.o obj-$(CONFIG_RTC_RX8025) += rx8025.o obj-$(CONFIG_RTC_RX8010SJ) += rx8010sj.o obj-$(CONFIG_RTC_S3C24X0) += s3c24x0_rtc.o
drivers/rtc/rv8803.c new file +167 -0
167 lines not on this page · raw message
Signature · 1 line
2.11.0
PATCH v2 1/1 rtc: add Microcrystal RV-8803 driver
Quoted 1 line · Michael Walle
Signed-off-by Michael Walle <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190714/f849594f/attachment.sig>