History

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.

Andreas Kemnade committed 6 years ago

Commit 0c816041 parent 361dca73 files · +93 −1Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/mfd/rn5t618.h+15−0
@@ -242,9 +242,24 @@ enum { · 241 unmodified lines
242242 RC5T619,
243243 };
244244
245+/* RN5T618 IRQ definitions */
246+enum {
247+ RN5T618_IRQ_SYS = 0,
248+ RN5T618_IRQ_DCDC,
249+ RN5T618_IRQ_RTC,
250+ RN5T618_IRQ_ADC,
251+ RN5T618_IRQ_GPIO,
252+ RN5T618_IRQ_CHG,
253+ RN5T618_NR_IRQS,
254+};
255+
245256 struct rn5t618 {
246257 struct regmap *regmap;
258+ struct device *dev;
247259 long variant;
260+
261+ int irq;
262+ struct regmap_irq_chip_data *irq_data;
248263 };
249264
250265 #endif /* __LINUX_MFD_RN5T618_H */