Skip to contentSkip to conversation

rtc: add RTC driver for TPS80031/TPS80032

PATCH In review Laxman Dewangan 2 participants 2 messages Jan 7, 2013 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 rtc: add RTC driver for TPS80031/TPS80032

Add an RTC driver for TPS80031/TPS80032 chips by TI. This driver supports:
- Setting and getting time and date.
- Setting and reading alarm time.
- Alarm and interrupt functionlity.

---
Changes from V1:
- remvoe the checks for alarm time whether this is past or not in set_alarm.
- add error prints if rtc registration failed.
- add include of pm.h

Changes from V2:
- Realize from other driver that devinit and devexit has been removed from driver. Hence removing the same from this driver.
- Rebase to 20130107 to avoid any merge conflict.
- Copyright year to 2012-2013.
- Set month to 0 inplace of 1 when need to initialise in probe.

 drivers/rtc/Kconfig        |    8 +
 drivers/rtc/Makefile       |    1 +
 drivers/rtc/rtc-tps80031.c |  349 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 358 insertions(+), 0 deletions(-)
 create mode 100644 drivers/rtc/rtc-tps80031.c
drivers/rtc/Kconfig +8 -0
index 37b0388..b869410 100644
@@ -386,6 +386,14 @@ config RTC_DRV_TPS65910
 	  This driver can also be built as a module. If so, the module
 	  will be called rtc-tps65910.
 
+config RTC_DRV_TPS80031
+	tristate "TI TPS80031/TPS80032 RTC driver"
+	depends on MFD_TPS80031
+	help
+	  TI Power Managment IC TPS80031 supports RTC functionality
+	  along with alarm. This driver supports the RTC driver for
+	  the TPS80031 RTC module.
+
 config RTC_DRV_RC5T583
 	tristate "RICOH 5T583 RTC driver"
 	depends on MFD_RC5T583
drivers/rtc/Makefile +1 -0
index 258147a..8dbae19 100644
@@ -115,6 +115,7 @@ obj-$(CONFIG_RTC_DRV_TILE)	+= rtc-tile.o
 obj-$(CONFIG_RTC_DRV_TWL4030)	+= rtc-twl.o
 obj-$(CONFIG_RTC_DRV_TPS6586X)	+= rtc-tps6586x.o
 obj-$(CONFIG_RTC_DRV_TPS65910)	+= rtc-tps65910.o
+obj-$(CONFIG_RTC_DRV_TPS80031)	+= rtc-tps80031.o
 obj-$(CONFIG_RTC_DRV_TX4939)	+= rtc-tx4939.o
 obj-$(CONFIG_RTC_DRV_V3020)	+= rtc-v3020.o
 obj-$(CONFIG_RTC_DRV_VR41XX)	+= rtc-vr41xx.o
drivers/rtc/rtc-tps80031.c new file +349 -0

349 lines not on this page · raw message

Signature · 1 line
1.7.1.1