Skip to contentSkip to conversation

rtc: rewrite isl1208 to support DM

PATCH New Klaus Goger 2 participants 2 messages Mar 19, 2018 – Apr 7, 2018 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 rtc: rewrite isl1208 to support DM

Adds devicemodel support to the ISL1208 driver.
This patch drops the non-dm API as no board was using it anyway. Also add it to Kconfig.

---

Changes in v3:
- Actually adding the changed files before submitting them. Sorry for that.

Changes in v2:
- Reword of Kconfig help text

 drivers/rtc/Kconfig   |  12 +++++
 drivers/rtc/isl1208.c | 141 ++++++++++++++++++++++++++++++--------------------
 2 files changed, 98 insertions(+), 55 deletions(-)
drivers/rtc/Kconfig +12 -0
index 95ac031243..277dc3de73 100644
@@ -30,6 +30,18 @@ config RTC_DS1307
 	  Support for Dallas Semiconductor (now Maxim) DS1307 and DS1338/9 and
 	  compatible Real Time Clock devices.
 
+config RTC_ISL1208
+	bool "Enable ISL1208 driver"
+	depends on DM_RTC
+	help
+	  The Renesas (formerly Intersil) ISL1208 is a I2C Real Time Clock (RTC) and
+	  calendar with automatic leap year correction, 2-byte battery backed SRAM,
+	  automatic power switch-over, alarm function and 15 selectable frequency
+	  outputs.
+
+	  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/isl1208.c +86 -55

188 lines not on this page · raw message

Signature · 1 line
2.11.0
#1 lore raw

PATCH v3 1/1 rtc: rewrite isl1208 to support DM

Quoted 7 lines · Klaus Goger

Adds devicemodel support to the ISL1208 driver.
This patch drops the non-dm API as no board was using it anyway. Also add it to Kconfig.

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/20180407/96eda91c/attachment.sig>