aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/rn5t618.h
diff options
context:
space:
mode:
authorAndreas Kemnade <andreas@kemnade.info>2020-03-20 09:11:00 +0100
committerLee Jones <lee.jones@linaro.org>2020-03-27 09:42:12 +0000
commit0c81604516afc0f3aedbb4dcf8215df7e5c7ef32 (patch)
treee8b5b43e14708012331382cec154ca96ae10a80a /include/linux/mfd/rn5t618.h
parentdt-bindings: mfd: rn5t618: Document optional property interrupts (diff)
downloadlinux-dev-0c81604516afc0f3aedbb4dcf8215df7e5c7ef32.tar.xz
linux-dev-0c81604516afc0f3aedbb4dcf8215df7e5c7ef32.zip
mfd: rn5t618: Add IRQ support
This adds support for IRQ handling in the RC5T619 which is required for properly implementing subdevices like RTC. For now only definitions for the variant RC5T619 are included. Signed-off-by: Andreas Kemnade <andreas@kemnade.info> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd/rn5t618.h')
-rw-r--r--include/linux/mfd/rn5t618.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/mfd/rn5t618.h b/include/linux/mfd/rn5t618.h
index d62ef48060b5..739571656f2b 100644
--- a/include/linux/mfd/rn5t618.h
+++ b/include/linux/mfd/rn5t618.h
@@ -242,9 +242,24 @@ enum {
RC5T619,
};
+/* RN5T618 IRQ definitions */
+enum {
+ RN5T618_IRQ_SYS = 0,
+ RN5T618_IRQ_DCDC,
+ RN5T618_IRQ_RTC,
+ RN5T618_IRQ_ADC,
+ RN5T618_IRQ_GPIO,
+ RN5T618_IRQ_CHG,
+ RN5T618_NR_IRQS,
+};
+
struct rn5t618 {
struct regmap *regmap;
+ struct device *dev;
long variant;
+
+ int irq;
+ struct regmap_irq_chip_data *irq_data;
};
#endif /* __LINUX_MFD_RN5T618_H */