diff options
author | Venu Byravarasu <vbyravarasu@nvidia.com> | 2012-09-21 06:55:36 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-09-28 18:32:34 -0400 |
commit | 5863eabb2a317ef499d340aa7201233a4fc9211e (patch) | |
tree | d43c35fc8fe3fb377e1576d2fbb9b19e2ca6d1af | |
parent | da58deec69777c22ece2ef871054c0d3d04e3e63 (diff) |
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.
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r-- | drivers/mfd/tps65910.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c index ca902943cfa9..0d79ce2b5014 100644 --- a/drivers/mfd/tps65910.c +++ b/drivers/mfd/tps65910.c | |||
@@ -24,6 +24,14 @@ | |||
24 | #include <linux/mfd/tps65910.h> | 24 | #include <linux/mfd/tps65910.h> |
25 | #include <linux/of_device.h> | 25 | #include <linux/of_device.h> |
26 | 26 | ||
27 | static struct resource rtc_resources[] = { | ||
28 | { | ||
29 | .start = TPS65910_IRQ_RTC_ALARM, | ||
30 | .end = TPS65910_IRQ_RTC_ALARM, | ||
31 | .flags = IORESOURCE_IRQ, | ||
32 | } | ||
33 | }; | ||
34 | |||
27 | static struct mfd_cell tps65910s[] = { | 35 | static struct mfd_cell tps65910s[] = { |
28 | { | 36 | { |
29 | .name = "tps65910-gpio", | 37 | .name = "tps65910-gpio", |
@@ -33,6 +41,8 @@ static struct mfd_cell tps65910s[] = { | |||
33 | }, | 41 | }, |
34 | { | 42 | { |
35 | .name = "tps65910-rtc", | 43 | .name = "tps65910-rtc", |
44 | .num_resources = ARRAY_SIZE(rtc_resources), | ||
45 | .resources = &rtc_resources[0], | ||
36 | }, | 46 | }, |
37 | { | 47 | { |
38 | .name = "tps65910-power", | 48 | .name = "tps65910-power", |