Skip to contentSkip to conversation

mfd: tps65910: Add alarm interrupt of TPS65910 RTC to mfd device list

PATCH Applied Venu Byravarasu 2 participants 2 messages Sep 21, 2012 – Sep 28, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mfd: tps65910: Add alarm interrupt of TPS65910 RTC to mfd device list

Add RTC alarm interrupt details to TPS65910 MFD device list, to support RTC alarm events.

---
 drivers/mfd/tps65910.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
drivers/mfd/tps65910.c +10 -0
index d030457..3404249 100644
@@ -24,6 +24,14 @@
 #include <linux/mfd/tps65910.h>
 #include <linux/of_device.h>
 
+static struct resource rtc_resources[] = {
+	{
+		.start  = TPS65910_IRQ_RTC_ALARM,
+		.end    = TPS65910_IRQ_RTC_ALARM,
+		.flags  = IORESOURCE_IRQ,
+	}
+};
+
 static struct mfd_cell tps65910s[] = {
 	{
 		.name = "tps65910-gpio",
@@ -33,6 +41,8 @@ static struct mfd_cell tps65910s[] = {
 	},
 	{
 		.name = "tps65910-rtc",
+		.num_resources = ARRAY_SIZE(rtc_resources),
+		.resources = &rtc_resources[0],
 	},
 	{
 		.name = "tps65910-power",
Signature · 1 line
1.7.1.1
Applied
#1 lore raw

Hi Venu,

Quoted 7 lines · Venu Byravarasu

Add RTC alarm interrupt details to TPS65910 MFD device list, to support RTC alarm events.

---
 drivers/mfd/tps65910.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

Applied, thanks.

Cheers,
Samuel.

Signature · 2 lines
Intel Open Source Technology Centre
http://oss.intel.com/