Skip to content

Commit

Permalink
mfd: tps65910: Add alarm interrupt of TPS65910 RTC to mfd device list
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Venu Byravarasu authored and Samuel Ortiz committed Sep 28, 2012
1 parent da58dee commit 5863eab
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions drivers/mfd/tps65910.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 5863eab

Please sign in to comment.