rtc: rewrite isl1208 to support DM
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.
Signed-off-by Klaus Goger <[email protected]>
Reviewed-by Philipp Tomsich <[email protected]>
Reviewed-by Simon Glass <[email protected]>
---
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
@@ -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
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 toKconfig.Signed-off-by Klaus Goger <[email protected]>Reviewed-by Philipp Tomsich <[email protected]>Reviewed-by Simon Glass <[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/20180407/96eda91c/attachment.sig>