OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da58dee
)
mfd: tps65910: Add alarm interrupt of TPS65910 RTC to mfd device list
author
Venu Byravarasu
<vbyravarasu@nvidia.com>
Fri, 21 Sep 2012 10:55:36 +0000
(16:25 +0530)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Fri, 28 Sep 2012 22:32:34 +0000
(
00:32
+0200)
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>
drivers/mfd/tps65910.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/tps65910.c
b/drivers/mfd/tps65910.c
index
ca90294
..
0d79ce2
100644
(file)
--- a/
drivers/mfd/tps65910.c
+++ b/
drivers/mfd/tps65910.c
@@
-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",