Commit 5863eabb authored by Venu Byravarasu's avatar Venu Byravarasu Committed by Samuel Ortiz

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: default avatarVenu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent da58deec
...@@ -24,6 +24,14 @@ ...@@ -24,6 +24,14 @@
#include <linux/mfd/tps65910.h> #include <linux/mfd/tps65910.h>
#include <linux/of_device.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[] = { static struct mfd_cell tps65910s[] = {
{ {
.name = "tps65910-gpio", .name = "tps65910-gpio",
...@@ -33,6 +41,8 @@ static struct mfd_cell tps65910s[] = { ...@@ -33,6 +41,8 @@ static struct mfd_cell tps65910s[] = {
}, },
{ {
.name = "tps65910-rtc", .name = "tps65910-rtc",
.num_resources = ARRAY_SIZE(rtc_resources),
.resources = &rtc_resources[0],
}, },
{ {
.name = "tps65910-power", .name = "tps65910-power",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment