Skip to contentSkip to conversation

mfd: tps6586x: add RTC driver for TI TPS6586x

PATCH Superseded [email protected] 1 participant 1 message Feb 15, 2011

Subsystems (3)

v6 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
#0 lore raw

PATCH v6 1/1 mfd: tps6586x: add RTC driver for TI TPS6586x

this driver supports setting of alarms, and
reading/setting of time

From: Gary King <[email protected]>

---
v6: enable/disable rtc irq while setting alarms

 drivers/rtc/Kconfig          |    6 +
 drivers/rtc/rtc-tps6586x.c   |  354 ++++++++++++++++++++++++++++++++++++++++++
 include/linux/mfd/tps6586x.h |   14 ++
 3 files changed, 374 insertions(+), 0 deletions(-)
 create mode 100644 drivers/rtc/rtc-tps6586x.c
drivers/rtc/Kconfig +6 -0
index 4941cad..3ab89ca 100644
@@ -297,6 +297,12 @@ config RTC_DRV_DM355EVM
 	help
 	  Supports the RTC firmware in the MSP430 on the DM355 EVM.
 
+config RTC_DRV_TPS6586X
+	tristate "TI TPS6586X RTC"
+	depends on MFD_TPS6586X
+	help
+	  This driver supports TPS6586X RTC
+
 config RTC_DRV_TWL92330
 	boolean "TI TWL92330/Menelaus"
 	depends on MENELAUS
drivers/rtc/rtc-tps6586x.c new file +354 -0

354 lines not on this page · raw message

include/linux/mfd/tps6586x.h +14 -0
index b6bab1b..eb5389c 100644
@@ -54,6 +54,20 @@ struct tps6586x_subdev_info {
 	void		*platform_data;
 };
 
+struct tps6586x_epoch_start {
+	int year;
+	int month;
+	int day;
+	int hour;
+	int min;
+	int sec;
+};
+
+struct tps6586x_rtc_platform_data {
+	int irq;
+	struct tps6586x_epoch_start start;
+};
+
 struct tps6586x_platform_data {
 	int num_subdevs;
 	struct tps6586x_subdev_info *subdevs;
Signature · 6 lines
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html