Skip to contentSkip to conversation

mfd: tps6586x: add RTC driver for TI TPS6586x

PATCH Superseded [email protected] 1 participant 1 message Mar 18, 2011

Subsystems (3)

v1 of 8 Superseded Latest is v8 →

lore
Share & tools
lore
#0 lore raw

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

From: Wei Ni <[email protected]>

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

---
 drivers/rtc/Kconfig          |    6 +
 drivers/rtc/rtc-tps6586x.c   |  380 ++++++++++++++++++++++++++++++++++++++++++
 include/linux/mfd/tps6586x.h |   14 ++
 3 files changed, 400 insertions(+), 0 deletions(-)
 create mode 100644 drivers/rtc/rtc-tps6586x.c
drivers/rtc/Kconfig +6 -0
index 4941cad..89159e0 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 +380 -0

380 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.0

--
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