diff options
author | Andreas Kemnade <andreas@kemnade.info> | 2020-03-20 09:11:00 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2020-03-27 09:42:12 +0000 |
commit | 0c81604516afc0f3aedbb4dcf8215df7e5c7ef32 (patch) | |
tree | e8b5b43e14708012331382cec154ca96ae10a80a /include/linux/mfd | |
parent | 361dca7d97f5ef8d0f3f8036bb33626a67817867 (diff) | |
download | linux-0c81604516afc0f3aedbb4dcf8215df7e5c7ef32.tar.gz linux-0c81604516afc0f3aedbb4dcf8215df7e5c7ef32.tar.bz2 linux-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')
-rw-r--r-- | include/linux/mfd/rn5t618.h | 15 |
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 */ |